0
Q:

javascript get current day of month


var d = new Date();
var n = d.getMonth();
 
1
new Date().getDate();//gets day of month (1-31)
2
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
1
var today = new Date();
var month = today.getMonth(); // Returns 9
console.log(month); // Output: 9
-1

New to Communities?

Join the community