Parsing Date in Objective-C

How can I most effectively analyze this in objective-c NSDate?

"2010-07-13T11: 22: 33-07: 00"

Here is what I tried

NSDateFormatter *format = [[NSDateFormatter alloc] init];
[format setDateFormat:@"yyyy-MMM-dd'T'HH:mm:ssZ"];

but does not work

+3
source share
1 answer

look here , I had this problem

", , RFC 822 GMT. " +00: 00 "" +0000 ", " Z " , " GMT + 00: 00 ", ZZZZ . , - , , OS 3.x"

+3

Source: https://habr.com/ru/post/1754532/


All Articles