In my project, I get "2008-02-01T10: 03: 23.793-06: 00" this date format in a string that I have to convert to NSDate, I use
NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZ"]; NSDate* dateFromString = [dateFormatter dateFromString:@"2008-02-01T10:03:23.793-06:00"];
But when I print the date value using NSLog, I get the value as null.
Please help me
thanks
source share