Converting non-English date string to NSDate

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.

Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)

Help/Unsubscribe/Update your Subscription:

This email sent to maillists@xxxxxxxxx