I get RSS in which I get the following date stamp:
2010-05-10T06:11:14.000Z
Now I use NSDateFormatter to parse this date and time stamp.
[parseFormatter setDateFormat:@"yyyy-MM-dTH:m:s.z"];
But it doesnโt work fine, if you just delete part of the timestamp, it works for the date. [parseFormatter setDateFormat:@"yyyy-MM-d"];But if I add the rest of the material, it will return zero.
[parseFormatter setDateFormat:@"yyyy-MM-d"];
Any idea?
Thanks in Advance ....
You need to parse the null values โโfor d, H, m, s
You need to print literal Tas'T'
T
'T'
You need to analyze the fractional part of seconds with SSS
SSS
Z 'Z' Z, , RSS .
Z
'Z'
@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
. , :
"" RSS- (, , ).
RSS- , . "yyyy-MM-ddTHH: mm: ss.Z". , "z" . http://www.stepcase.com/blog/2008/12/02/format-string-for-the-iphone-nsdateformatter/
RSS- . , , .