Unable to Parse Date using NSDateFormatter

Posted by Ansari on Stack Overflow See other posts from Stack Overflow or by Ansari
Published on 2010-05-10T06:41:05Z Indexed on 2010/05/10 6:44 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

Hi,

I am fetching a RSS, in which i receive the following Date stamp:

2010-05-10T06:11:14.000Z

Now i am using NSDateFormatter to parse this datetime stamp.

[parseFormatter setDateFormat:@"yyyy-MM-dTH:m:s.z"];

But its not working fine if just remove the time stamp part it works for the date [parseFormatter setDateFormat:@"yyyy-MM-d"]; But if i add the rest of the stuff it returns nil.

Any idea ?

Thanks in Advance....

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsdate