1// Find current month in JavaScript
2const localDate = new Date();
3const months = [
4 'January',
5 'February',
6 'March',
7 'April',
8 'May',
9 'June',
10 'July',
11 'August',
12 'September',
13 'October',
14 'November',
15 'December',
16];
17let currentMonth = months[localDate.getMonth()];
18console.log(currentMonth);
1var date=new Date();
2var month=new Array();
3month[0]="January";
4month[1]="February";
5month[2]="March";
6month[3]="April";
7month[4]="May";
8month[5]="June";
9month[6]="July";
10month[7]="August";
11month[8]="September";
12month[9]="October";
13month[10]="November";
14month[11]="December";
15var n = month[date.getMonth()];
1var Xmas95 = new Date();
2var options = { month: 'long'};
3console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95));
4// December
5console.log(new Intl.DateTimeFormat('de-DE', options).format(Xmas95));
6// Dezember
7