I am trying to get date from this string 2014-10-08T15:09:19+05:30. My code is
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:sszzz"];
NSLog(@"%@",[dateFormatter dateFromString:@"2014-10-08T15:09:19+05:30"]);
but o/p is 2014-10-08 09:39:19 +0000
expected is 2014-10-08 15:09 PM
saw other threads also and tried with timezone as suggested in others but not able to get the correct date.