Provide a way to control the date format NSDatePicker uses

Originator:armadsen
Number:rdar://23694242 Date Originated:30-Nov-2015 02:55 PM
Status:Open Resolved:
Product:OS X Product Version:Mac OS X 10.11.1 (15B42)
Classification:Enhancement Reproducible:Always
 
Currently, NSDatePicker always uses the date style specified in the (system-wide) Language & Region system preferences pane. It is not easily possible to force a different format. My use case for this is to force a date picker to use 24-hour time in an app where that makes sense even though the vast majority of users will not want to use 24 hour time system-wide. It is possible to provide NSDatePicker with a formatter using the formatter property inherited from NSControl, however to my knowledge, this has no effect.

tl;dr: Please provide an API to force NSDatePicker to use a particular format to display its date/time.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!