I have a date string like this:
2010-09-04T19:13:00Z
But how do I configure the NSDateFormatter to accept this timezone format? I have tried googling and all, but no luck.
Thank you Søren
I have a date string like this:
2010-09-04T19:13:00Z
But how do I configure the NSDateFormatter to accept this timezone format? I have tried googling and all, but no luck.
Thank you Søren
[NSDateFormatter setDefaultFormatterBehavior:NSDateFormatterBehavior10_4];
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
[formatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"];
NSDate *date = [formatter dateFromString:'2010-09-04T19:13:00Z'];