Loading, please wait...

Convert Date to Number in JavaScript | JavaScript

Apr 13, 2021 JavaScript, 344 Views
Convert Date to Number in JavaScript | JavaScript

Convert Date to Number in JavaScript | JavaScript

const date = new Date();
console.log(date);
const result = date.getTime();
console.log(result)