Javascript Date Convert to Number

Description

Javascript Date Convert to Number



let myDate = new Date();
let myMSValue = myDate.valueOf();
console.log(myMSValue);   // w  ww .j a v  a  2  s  .  c  om
console.log(typeof myMSValue);



PreviousNext

Related