I'm sure this is a easy problem, but I just can not seem to find how to do this anywhere. I need to use the current Date and save it into a String. I do not know how to get the dat stamp. Could someone please help me out? Thank you for your time! -Jeff
+4
A:
You will need to set your format according to the docs
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"MM-dd-yy"];
NSString *date = [formatter stringFromDate:[NSDate date]];
coneybeare
2009-11-04 16:29:56
Thank you very much!
Jeff
2009-11-04 16:39:13