Skip to content

Instantly share code, notes, and snippets.

@phsantiago
Created February 18, 2016 20:14
Show Gist options
  • Save phsantiago/dc7411bd00bda6a673e8 to your computer and use it in GitHub Desktop.
Save phsantiago/dc7411bd00bda6a673e8 to your computer and use it in GitHub Desktop.
//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