• 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: How to access stand-alone month name with NSDateFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to access stand-alone month name with NSDateFormatter


  • Subject: Re: How to access stand-alone month name with NSDateFormatter
  • From: Dary Mihova <email@hidden>
  • Date: Fri, 26 Aug 2005 23:02:00 +0100

I've tried this but it returns the formatting month array instead of stand alone month array. So the result is the same as NSDateFormatter with dateFormat string "%B".
Thanks anyway.


On 26.08.2005, at 20:11, Ryan Britton wrote:

This may be what you're looking for...

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSUserDefaults.html#//apple_ref/doc/c_ref/ NSMonthNameArray

NSUserDefaults provides a key that'll return a localized month name array.

On Aug 26, 2005, at 11:34 AM, Dary Mihova wrote:


I have a text field and I want to to show the current month name. It seems an easy task at first - attach a NSDateFormatter, set its dateFormat to "%B" or "MMMM" and you're done. But...

Some languages use two grammar forms of month names (Russian, Polish, Greek...). Latest ICU version (integrated in Tiger) supports this. For example Date & Time pref pane uses the stand- alone month name.

My question is does anyone know how to access the stand alone month name (if it's possible of course)? I read the recently updated docs for data formatting but couldn't find any info about this.

Thanks,
Dary

_______________________________________________
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



_______________________________________________ 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: 
 >How to access stand-alone month name with NSDateFormatter (From: Dary Mihova <email@hidden>)
 >Re: How to access stand-alone month name with NSDateFormatter (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: Loading an image contained in a custom framework ?
  • Next by Date: Re: How to access stand-alone month name with NSDateFormatter
  • Previous by thread: Re: How to access stand-alone month name with NSDateFormatter
  • Next by thread: Re: How to access stand-alone month name with NSDateFormatter
  • Index(es):
    • Date
    • Thread