Last active
December 4, 2015 20:21
-
-
Save DonMag/8315ee8fa376c4d5b3c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////// | |
let time = "2015-10-29T05:22:15.000000Z" | |
let dateFormatter = NSDateFormatter() | |
dateFormatter.dateFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSS'Z'" | |
//dateFormatter.dateStyle = .ShortStyle | |
//dateFormatter.timeStyle = .ShortStyle | |
// if either Style line is uncommented, | |
// the next line shows an error | |
let ldd:NSDate = dateFormatter.dateFromString(time)! | |
print(ldd) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let x = "abc"