Skip navigation.
 
mlRe: How to get default date format?
FROM : Daniel Morrow
DATE : Thu Oct 07 15:40:19 2004

never mind, found it.

NSString* formatStr = [[NSUserDefaults standardUserDefaults]
objectForKey:NSDateFormatString];

-Dan.
On Oct 7, 2004, at 9:17 AM, Daniel Morrow wrote:

> Dear cocoa-dev list,
>
> I have a date string that get in this form "2004-10-07"
>
> which I'd like to turn into a date, and then return the string
>
> "Thursday, October 10, 2004"
>
> However, I don't want to hard-code the format of the string. I want to
> ask the system what the user's preferred long-date format is, and
> display it like that. You know, the format that the user chooses in
> the "International" system prefs.
>
> Thanks,
> -Dan.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlHow to get default date format? Daniel Morrow Oct 7, 15:17
mlRe: How to get default date format? Daniel Morrow Oct 7, 15:40
mlRe: How to get default date format? Sean McBride Oct 9, 00:26