hi to all I am Struggling to convert NSString to NSDate with the Help of formatter but its going to be null Can any one help please here is my code...
NSString *dateString=[NSString stringWithFormat:@"10/26/2010/09:56:56 PM"];
NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease];
[dateFormat setDateFormat:@"mm/dd/yyyy HH:mm:ss a"];
NSDate *localDateTime =[dateFormat dateFromString:dateString];
NSLog(@"client date is %@",localDateTime);
Thx in Advance