Created
September 6, 2016 09:55
-
-
Save jimmy89Li/9fd281960a6fc10829bdd55c2fb69ce4 to your computer and use it in GitHub Desktop.
strtotime JS replacement
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 dateString = Date.parse("2016-08-01T12:00:00+0000"); | |
var fbSince = dateString / 1000; | |
document.write(fbSince); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment