NSDateFormatter fails
NSDateFormatter fails
- Subject: NSDateFormatter fails
- From: "D. Felipe Torres" <email@hidden>
- Date: Mon, 31 Mar 2014 14:56:02 -0300
Given the following code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss"];
NSLog(@"Date from String: %@", [formatter dateFromString:@
"2013-09-08T00:36:40"]);
The log produces: Date from String: (null)
For other strings from the same source it works, but i'm failing to see why
in this case fails.
Could someone enlighten me?
--
++++++++++++++++++++++++++
Diego Torres.
_______________________________________________
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