• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about NSLocale with NSDateFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Question about NSLocale with NSDateFormatter (From: Daniel Mischler <email@hidden>)

  • Prev by Date: Re: Special characters
  • Next by Date: Re: Special characters
  • Previous by thread: Question about NSLocale with NSDateFormatter
  • Next by thread: Re: Question about NSLocale with NSDateFormatter
  • Index(es):
    • Date
    • Thread