Converting non-English date string to NSDate
Converting non-English date string to NSDate
- Subject: Converting non-English date string to NSDate
- From: Kyle <email@hidden>
- Date: Tue, 31 Mar 2009 12:33:41 -0700
My app imports tab-delimited data, and to convert a string date value
to a NSDate value, it uses this method:
NSDate *theDate = [NSDate dateWithNaturalLanguageString:theStr
locale:[[NSUserDefaults standardUserDefaults]
dictionaryRepresentation]];
This works fine for English date strings, but not when the date string
is non-English. For example, a German date string usually (but not
always) returns a nil value. This is true even when the OS is the
German OS.
Is there better way to convert string date values to NSDate values,
especially non-English string date values?
Thanks in advance.
-Kyle
_______________________________________________
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