get year month javascript code example
Example 1: javascript get current day of month
new Date().getDate();//gets day of month (1-31)
Example 2: js get day month year
const d = new Date();
d.getMonth() + 1; // Month [mm] (1 - 12)
d.getDate(); // Day [dd] (1 - 31)
d.getFullYear(); // Year [yyyy]