new date.getdate code example
Example 1: javascript get date
let date = new Date(); //actual time in miliseconds
let string = date.toString();
// expected output: Wed Jul 28 1993 14:39:07 GMT+0200 (CEST)
// if you need more power: date-fns.js or moment.js
Example 2: javascript getdate
var d=new Date();
d.getDate(); //returns the day of the month (from 1 to 31)