03/20/11 11:24 AM(MONTH/DATE/YEAR HOUR:MIN)
Posted
by
The deals dealer
on Stack Overflow
See other posts from Stack Overflow
or by The deals dealer
Published on 2011-02-03T07:07:09Z
Indexed on
2011/02/03
7:25 UTC
Read the original article
Hit count: 139
iphone
I am using the below code:
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateStyle:NSDateFormatterFullStyle];
NSDate *today=[NSDate date];
NSString *string = [dateFormatter stringFromDate:today];
NSLog(@"%@",string);
[dateFormatter release];
This will not give me this format 03/20/11 11:24 AM(MONTH/DATE/YEAR HOUR:MIN), if i convert system date and time so the converted string should have such type of information 03/20/11 11:24 AM(MONTH/DATE/YEAR HOUR:MIN).? What should i do?
© Stack Overflow or respective owner