Hi all
I am trying to generate an NSDate value by passing the below given string
to the setDateFormat method of NSDateFormatter
as show below
When I make use of
dateFromString with the below given string
"2009-02-01 00:00:00 +0000", it does not generate a valid date
What's wrong with this date format?
Thanks
I am trying to generate an NSDate value by passing the below given string
to the setDateFormat method of NSDateFormatter
as show below
Code:
NSDateFormatter *dt=[[NSDateFormatter alloc]init];
[dt setFormatterBehavior:NSDateFormatterBehavior10_4];
[dt setDateFormat:@"yyyy-mm-dd HH:MM:ss +0000"];
dateFromString with the below given string
"2009-02-01 00:00:00 +0000", it does not generate a valid date
What's wrong with this date format?
Thanks