Ben Gray
Ben Gray

Reputation: 160

Date format - Swift

I need to find the date format for this type of date:

2013-01-02T16:19:56.000000

I have tried a few such as yyyy-mm-ddThh:mm:ss.SSS with no luck

If you can tell me which one that would be great,

Thanks

Upvotes: 0

Views: 593

Answers (1)

Lucas Huang
Lucas Huang

Reputation: 4016

Should be like this if you want to skip all the 0: yyyy-MM-ddTHH:mm:ss

The ISO standard format is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'

Upvotes: 3

Related Questions