• 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 get the Time/Date separators?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the Time/Date separators?


  • Subject: Re: How to get the Time/Date separators?
  • From: Jon Hull <email@hidden>
  • Date: Mon, 21 Oct 2002 09:59:02 -0700

On Monday, October 21, 2002, at 06:21 AM, Stiphane Sudre wrote:
There is no keys in NSUserDefaults for the separators and there is not a real key for the MYD order value (maybe the good one is NSDateTimeOrdering but I don't understand it like this).

My goal is to create a Formatter string like this:
%m.%d.%y
should the user have chosen MDY and . as the Date separator.

You might try running through the NSShortDateFormatString. Grabbing the char after a '%' will give you MYD ordering, and grabbing the string after the first '% + char' and before the second '%' should give you the separator.

How is the string you are making different from NSShortDateFormatString?

Thanks,
Jon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to get the Time/Date separators? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: How to get the Time/Date separators?
  • Next by Date: Re: Add rtf line to RTF file
  • Previous by thread: Re: How to get the Time/Date separators?
  • Next by thread: Similarly -- Getting the Locale's Re: How to get the Time/Date separators?
  • Index(es):
    • Date
    • Thread