getmonth from given date in javascript code example
Example 1: javascript getmonth
new Date().getMonth(); //note that Jan=0, Dec=11 (annoying I know)
Example 2: get current date javascript full month
var Xmas95 = new Date();
var options = { month: 'long'};
console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95));
// December
console.log(new Intl.DateTimeFormat('de-DE', options).format(Xmas95));
// Dezember