Join Slack
Communities
Powered by
Hmm how to parse milliseconds since epoch to javas...
# javascript
t
tlaukkan
07/03/2017, 5:32 PM
Hmm how to parse milliseconds since epoch to javascript date in kotlin
b
bashor
07/03/2017, 5:33 PM
tlaukkan: could you please clarify what exactly do you want to do?
t
tlaukkan
07/03/2017, 5:43 PM
val milliSecondsSinceEpoch = 1231231231123
tlaukkan
07/03/2017, 5:43 PM
val date = Date(milliSecondsSinceEpoch)
tlaukkan
07/03/2017, 5:54 PM
ah, loading from kotlin backend some data, which has dates converted as milliseconds
tlaukkan
07/03/2017, 5:54 PM
trying to get that to javascript date so I can format it
tlaukkan
07/03/2017, 6:00 PM
Ended up writing native javascript function
Open in Slack
Previous
Next