I know this probelm has been discussed many times on SO, but none of the results solve my problem.
Here is the code snippet,
NSDateFormatter* df = [[NSDateFormatter alloc]init];
[df setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSZ"];
NSDate* date = [df dateFromString:dateTaken];
/* dateTaken gets its value
from the server as 2006-01-23T20:50:27Z */
I hav tried adding breakpoints and checked, dateFromString is returning nil.
Once I get a date Object, I would change its format and display a different string but I am not getting a date Object itself.
What could be the issue here ?
The last part of the format string should be
instead of