Hi friends,
I donno to give the correct date format of the input date, so please give me to correct input date format.
Here my sample code and the date formats.
NSString *yourXMLDate = @"Thursday, September 9, 2010";
NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init];
[inputFormatter setDateFormat:@"EEEE, MMMM dd, YYYY"]; // It doesnt work
---->[inputFormatter setDateFormat:@"EEEE, ????????????"];
NSDate *inputDate = [inputFormatter dateFromString:yourXMLDate];
NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init];
[outputFormatter setDateFormat:@"MM/dd"];
NSString *outputDate = [outputFormatter stringFromDate:inputDate];
Thanks!