Re: NSDateFormatter fails
Re: NSDateFormatter fails
- Subject: Re: NSDateFormatter fails
- From: Jens Alfke <email@hidden>
- Date: Mon, 31 Mar 2014 11:21:23 -0700
Well, try parsing using -getObjectValue:forString:range:error: instead, so you get an error message.
Also, try setting the locale of the formatter to en_US_POSIX so you don’t get any localization effects.
(I just got both of these suggestions from “Parsing Date Strings” in Apple’s “Data Formatting Guide: Date Formatters”. Have you read it?)
—Jens
_______________________________________________
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