Date.parse()
1 | let timestamp = Date.parse(new Date()); |
Date.prototype.valueOf()
1 | let timestamp = (new Date()).valueOf(); |
Date.prototype.getTime()
1 | let timestamp = new Date().getTime(); |
Date.parse()
1 | let timestamp = Date.parse(new Date()); |
Date.prototype.valueOf()
1 | let timestamp = (new Date()).valueOf(); |
Date.prototype.getTime()
1 | let timestamp = new Date().getTime(); |