from time get Date code example
Example 1: javascript get current day of month
new Date().getDate();//gets day of month (1-31)
Example 2: 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