in swift 2.x I used toDate function to get iso date using SwiftDate. Any one knows the right replacement for this:
let isoDate = stringDate.toDate(DateFormat.ISO8601Format(.Extended))
Looking at the SwiftDate documentations, I've tried something like this:
let isoDate = stringDate.date(format:.iso8601)
but it complaints about format
EDIT:
I changed SwiftDate version from 4.0.7 to 4.0.3 and now iso format exists but throws an error
my date string: "2016-11-24T03:00:00.000Z"
let isoDate = try! dt.date(format: DateFormat.iso8601(options: .extended)).absoluteDate
error: Type 'ISO8601DateTimeFormatter.Options' has no member 'extended'
let isoDate = try! dt.date(format: DateFormat.iso8601(options: [])).absoluteDate
error: no error but throws
in swift 2.2 I used exactly the same date format.