javascript get month day year from date code example
Example 1: javascript get current day of month
new Date().getDate();//gets day of month (1-31)
Example 2: get current month of year in number javascript
var today = new Date();
var month = today.getMonth(); // Returns 9
console.log(month); // Output: 9