I have a string of date 2010-11-29T00:00:00+05:30 and I want to convert it into NSDate
.
I want to convert it into 11/29/2010. For this I am doing something like this..
NSDateFormatter *df = [[NSDateFormatter alloc] init];
textForLabel = @"2010-11-29T00:00:00+05:30";
[df setDateFormat:@"yyyy-MM-dd"];
NSDate *myDate = [df dateFromString:textForLabel];
NSLog(@"date : %@",myDate);
But output is null.
What could be date format for 2010-11-29T00:00:00+05:30 ?
I am not getting what is getting wrong here.