Created
September 25, 2019 17:52
-
-
Save rmsaitam/3468f9562b5f0829d4ed682c73b7e740 to your computer and use it in GitHub Desktop.
Converte uma data para timestamp
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
var date="25/09/2019"; | |
date.split("/"); | |
var newDate = date[1]+"/"+date[0]+"/"+date[2]; | |
console.log(new Date(newDate).getTime()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment