Re: Question about NSLocale with NSDateFormatter
Re: Question about NSLocale with NSDateFormatter
- Subject: Re: Question about NSLocale with NSDateFormatter
- From: Rob Mayoff <email@hidden>
- Date: Thu, 10 Nov 2005 17:54:30 -0600 (CST)
- Envelope-sender: email@hidden
If you're willing to support 10.4 and later only, try this:
NSDateFormatter* _formatter = [[NSDateFormatter alloc] init];
[_formatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[_formatter setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"de_CH"]
autorelease]];
[_formatter setDateStyle:NSDateFormatterFullStyle];
NSLog(@"%@", [_formatter stringFromDate:[NSDate date]]);
_______________________________________________
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