Re: NSDateFormatter and the rigidity of date string input
Re: NSDateFormatter and the rigidity of date string input
- Subject: Re: NSDateFormatter and the rigidity of date string input
- From: Deborah Goldsmith <email@hidden>
- Date: Mon, 25 Jun 2007 18:17:18 -0700
This is a known bug.
Sorry...
Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc.
email@hidden
On Jun 25, 2007, at 3:25 PM, Nick Zitzmann wrote:
I have a 10.0-style NSDateFormatter, and normally it correctly
formats date strings that use any US date format. But I'd like to
improve the international support, so I've been experimenting with
switching it to a 10.4-style formatter.
Now it displays and accepts format strings in the user's locale,
but it rejects strings that are entered using a slightly different
format, e.g. if I make it a long-style date formatter, then it will
only accept input that is in the form of a long date. I want to
make it so that the formatter will accept dates in all formats, not
just the format that is used to display the string.
How can I do this with a 10.4-style date formatter? I already tried
-setLenient: as suggested in the documentation and it didn't work.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden