Re: NSDatePicker display format
Re: NSDatePicker display format
- Subject: Re: NSDatePicker display format
- From: robmartin--- via Cocoa-dev <email@hidden>
- Date: Tue, 21 Jan 2020 18:04:45 -0500
Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in
the xib) and setting its format string to what you want?
Haven't tried it, but might work...
> On Jan 21, 2020, at 5:22 PM, Marco S Hyman via Cocoa-dev
> <email@hidden> wrote:
>
> Is there a way to change the date format used by NSDatePicker?
>
> The dateValue I’m seeing, for example, is "1/20/2020 1:41:42 PM”. At a
> minimum I’d like the time displayed in 24 hour mode instead of AM/PM.
> Ideally I’d like the date to be “yyyy:MM:dd HH:mm:ss” because that is how it
> is used elsewhere in the user interface.
>
> Marc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden