Objective-C, How can I get the current date in UTC timezone?

前端 未结 0 311
感情败类
感情败类 2020-12-23 07:13

I am trying:

NSDate *currentDateInLocal = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@\"yyy         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题