tags:

views:

20

answers:

1

hello all I have the date in string format "2009-07-06T02:05:11.000+10:00" which i have taken from xml.. Now i need to convert that into date format and use it.How could I do this Thanks all

+1  A: 

See the doc for NSDateFormatter

Roughly as follows:

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat: @"DATE FORMAT HERE !!!"];
NSDate *date = [dateFormatter dateFromString: @"DATE TEXT STRING"];
RichB