javascript getdate w3schools code example
Example 1: javascript getdate
var d=new Date();
d.getDate(); //returns the day of the month (from 1 to 31)
Example 2: javascript date
const d = new Date();
d.getFullYear(); // 2020
d.getMonth(); // October
d.getDate(); // 4
d.getHours(); // 11
d.getMinutes(); // 20
d.getSeconds(); // 12
d.getMilliseconds(); // 0
d.getTime(); // ????????????