The code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"m"];
NSLog(@"%@", [formatter stringFromDate:myDate]);
outputs: 0 if myDate has its minute value to 0.
This is normal, but how do I make it output a blank value instead of 0 if the minute is set to 0?
NSString * newString = [myString stringByReplacingOccurrencesOfString:@"0" withString:@""];