2012-12-17 91 views

回答

0

您可以隨時谷歌的這些類型的問題

嘗試看看NSDateFormatter類,
你正在尋找的格式是這樣的:

[dateFormatter setDateFormat:@"MMM dd,yyy hh:mm:ss a"]; //dateFormatter is an object of class NSDateFormatter 
0
NSDate *selected_Date = //Your Date object here; 
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; 
    [dateFormat setDateFormat:@"MMM dd,yyy hh:mm:ss a"]; 
    NSString* strDateObj [NSString stringWithFormat:@"%@",[dateFormat stringFromDate:selected_Date]]; 
    NSLog(@"Date %@",)