My code ,
-(NSString *)trimDateStringInRequiredFormat:(NSString *)dateInString{ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFor
This is because for 24 Hr format you need to use HH instead of hh