iOS时间字符串固定位24小时制
2023-05-15 本文已影响0人
44b6889cedeb
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSLocale *zh_CNLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];
dateFormatter.locale= zh_CNLocale;
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSLocale *zh_CNLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];
dateFormatter.locale= zh_CNLocale;