I want to convert 2015-08-14T20:02:25-04:00 to 2015-08-14 16:02 I tried below, but it could\'t execute well(returned nil).
2015-08-14T20:02:25-04:00
2015-08-14 16:02
let
You can use :
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZ"
Hope this help you !