I'm trying to get the Date object for this string format "2018-03-30T14:36:10.093" in Swift, but I don't get it. It is not ISO8601 because of that point after the number 10.
Any solutions?
I'm trying to get the Date object for this string format "2018-03-30T14:36:10.093" in Swift, but I don't get it. It is not ISO8601 because of that point after the number 10.
Any solutions?
I got it. It's about to trim the string from the point after the 10 number and give the date formatter the following format:
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"