Re: arbitrary date formats based on user prefs
Re: arbitrary date formats based on user prefs
- Subject: Re: arbitrary date formats based on user prefs
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 22 Dec 2004 08:00:07 -0800
On Dec 22, 2004, at 6:00 AM, Ben Dougall wrote:
how can i display particular date elements in the style of the
user's prefs?
<http://developer.apple.com/documentation/Cocoa/Reference/
Foundation/ObjC_classic/Classes/NSUserDefaults.html>
See, for example, NSDateFormatString
sorry to be a thicky but i can't see how that'd get various sets of
date elements -- i'm trying to work out how to get a preferred format
for different combinations of date elements.
how can i get the preferred format for, for example, the full day
name(%A) and the day number of month(%e) and the full month name(%B)
as the user would want to see those date elements? is there a way to
say "what's the preferred format for this combination of elements: %e
%B %A ?" (or other combinations) and get back the format "%A, %e %B"
or "%A, %B %e" or whatever depending on how the user would like it --
based on the international date pref settings.
Sorry, I misunderstood the question. There isn't a straightforward way
to do this. If for some reason you can't simply use the user defaults,
it sounds like you should probably have the user set their own
preferences for your application.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden