I need to parse following string into NSDate.
Example: 2008-09-28T02:48:16+05:30
I tried following but it is not working
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"];
NSLog(@"Date=%@",[dateFormatter dateFromString:@"2008-09-28T02:48:16+05:30"]);
It works only if I keep the @"2008-09-28T02:48:16+05:30"
to @"2008-09-28T02:48:16+0530"
.