Created
February 18, 2016 20:14
-
-
Save phsantiago/dc7411bd00bda6a673e8 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
//funciona com motor do safari e chrome | |
function getTimestamp(brDate){ | |
return new Date(brDate.split('/').reverse().join("-")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment