[Solved] How to convert Objective-C to date format yyyy-MM-dd [duplicate]


Assuming it is a timestamp, you can do the following to convert it into a NSDate object:

NSDate *date = [NSDate dateWithTimeIntervalSince1970:1460510348510/1000.0];

which prints out 2016-04-13 01:19:08 +0000 if you NSLog it.

How you can parse that response into an actual timestamp is described below:

Parsing JSON (date) to Swift

solved How to convert Objective-C to date format yyyy-MM-dd [duplicate]