Created
March 4, 2015 07:38
-
-
Save arifulhb/e47016a1cbbd1be7de04 to your computer and use it in GitHub Desktop.
unix timestamp to javascript date
This file contains hidden or 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
var ep = '1424901599'; | |
var date = new Date(ep*1000); | |
var iso = date.toLocaleString(); | |
alert(iso) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment