How To Convert Timestamp To Date String Ios Swift

[Solved] How To Convert Timestamp To Date String Ios Swift | Swift - Code Explorer | yomemimo.com
Question : swift string time to epoch

Answered by : horned-rattlesnake

let date = NSDate() // current date
let unixtime = date.timeIntervalSince1970

Source : https://riptutorial.com/ios/example/6436/get-unix-epoch-time | Last Update : Fri, 03 Apr 20

Question : convert secondsfrom1970 to date swift

Answered by : blue-beetle-wrnsa08z05uj

var epocTime = NSTimeInterval(1429162809359)
let myDate = NSDate(timeIntervalSince1970: epocTime)
println("Converted Time \(myDate)")

Source : https://stackoverflow.com/questions/29670585/how-to-convert-unix-epoc-time-to-date-and-time-in-ios-swift | Last Update : Fri, 19 Jun 20

Answers related to how to convert timestamp to date string ios swift

Code Explorer Popular Question For Swift