I know this question is similar to others asked, but I can\'t find where my code is going wrong. I am trying to convert the current date into a mm/dd/yyyy format. Here is wh
Check the case:
mm means minutes
mm
MM means months
MM
So your code should probably read
NSDate *date = [[NSDate alloc]init]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"MM/dd/yyyy"]; NSLog(@"%@", [formatter stringFromDate:date]);