Re: How to get the Time/Date separators?
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.