I need to change string that is in 12 hour time format into NSDate. I am using below given code but its returning null. Can anyone help me with this??
NSString = @"04/03/2013 7pm";
NSDateFormatter *df = [[NSDateFormatter alloc]init];
[df setDateFormat:@"dd/MM/yyyy hh:mm a"];
NSDate *date = [df dateFromString:selectedDateString];