Do you want to get the current Month of the year in your HTML website?
This date object get's the current date of the client machine the browser is running under.
Using this Date() object, we can get the current month using the getMonth() method
From the example, we can see that we used created a new constant called dateToday and we assigned it the new Date().
From the dateToday, we used the getMonth() method and extracted the month from today's date.
This gives us the current month as a number.