JavaScript Date getMonth()
JavaScript Date getMonth()
The getMonth() method is used to return the month of a date i.e, from 0 to 11. In this, January start from 0 and so on.
Syntax:-
Its syntax is:- Date.getMonth()
Return:-
Its return is:- number of month from 0 to 11