NSDateFormatter not working properly?

后端 未结 2 1796
误落风尘
误落风尘 2021-01-28 05:02

My code ,

-(NSString *)trimDateStringInRequiredFormat:(NSString *)dateInString{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFor         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-28 05:40

    This is because for 24 Hr format you need to use HH instead of hh

提交回复
热议问题