function getMonthName(monthNumber) {
const date = new Date();
date.setMonth(monthNumber - 1);
return date.toLocaleString([], { month: 'long' });
}
You must log in or register to comment.
Somebody has not worked with dates for very long, to be so sure of themselves…
I’ve worked with dates long enough in lots of different languages to recognize API decisions that are absurd.