1 2 3 4 5
| NSDate *date = [NSDate date]; LOG_FORMAT(@"1: %@", [EFUtils stringFromDateFormattedString:@"2020/08/30" dateFormatIn:@"yyyy/MM/dd" dateFormatOut:@"yyyy年MM月dd日"]); LOG_FORMAT(@"2: %@", [EFUtils dateFromDateFormattedString:@"2020-08-30"]); LOG_FORMAT(@"3: %@", [EFUtils dateFromDateFormattedString:@"2020-08-30 10:00:00" dateTime:YES]); LOG_FORMAT(@"4: %@", [EFUtils dateFromDateFormattedString:@"2020年8月30日" dateFormatIn:@"yyyy年MM月dd日"]);
|