I am working on date formats in Swift and am trying to convert a string date to NSDate and an NSSate to string date (ISO 8601 format).
This is my code
You can use NSISO8601DateFormatter or ISO8601DateFormatter for Swift 3.0+