I’m completely new to JS Date Object, and I need to get day’s number, month’s number and year from a specific date using month’s French name.
I know how to do it using month’s English name:
const dt = new Date("12 may 1996"),
day = dt.getDate(),
month = dt.getMonth(),
year = dt.getFullYear();
How can I accomplish this using French language for the month (with no arrays or objects)? E.g.:
const dt = new Date("12 mai 1996");