Update README.md

This commit is contained in:
Ralph Küpper 2018-03-09 08:38:49 -05:00 committed by GitHub
parent a27ed9e9d6
commit c8d819bad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ let dateString = "2018-03-08T15:49:46.5+03:30"
let dateFormatter = DateFormatter()
dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
dateFormatter.dateFormat = "YYYYMMdd'T'HHmmss'Z'"
let date:Date = dateFormatter.string(from: dateString) // this will not work work.
let date:Date = dateFormatter.string(from: dateString) // this will not work.
```
With _SwiftyDates_ all you need to do is this: