JavaScript Date getDate()
JavaScript Date getDate()
The getDate() method is used to return the day of the month i.e, 1 to 31 of the date.
Syntax:-
Its syntax is:- Date.getDate()
Return:-
Its return is:- number which is a day of the month.