• 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: Stéphane Sudre <email@hidden>
  • Date: Mon, 21 Oct 2002 18:37:09 +0200

On Monday, October 21, 2002, at 06:12 PM, Nicholas Riley wrote:

On Mon, Oct 21, 2002 at 03:21:42PM +0200, Stiphane Sudre wrote:
So is there some hidden keys. The headers are mute on this topic too.

No, this is actually documented, if somewhat buggy.

For the separator in NSUserDefaults.h?

My goal is to create a Formatter string like this:

%m.%d.%y

should the user have chosen MDY and . as the Date separator.

Try NSShortDateFormatString.

That's what I tried and don't ask me how or why, I got 21 Oct 2002 when I used it.

I tried it again, and I got 10/21/02 as I would have expected.

Looks like there's a bug somewhere in the Formatter code.
_______________________________________________
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: 
 >Re: How to get the Time/Date separators? (From: Nicholas Riley <email@hidden>)

  • Prev by Date: Re: How to get the Time/Date separators?
  • Next by Date: Re: How to get the Time/Date separators?
  • Previous by thread: Re: How to get the Time/Date separators?
  • Next by thread: Re: How to get the Time/Date separators?
  • Index(es):
    • Date
    • Thread