JavaScript Date setDate()
JavaScript Date setDate()
The setDate() method is used to set the day of the month of a date.
Syntax:-
Its syntax is:- Date.setDate(day)
Return:-
Its return is:- number of milliseconds of new date from 1 January, 1970
Further Explanation:-
Parameter | Description |
day | An integer represents the day 1 to 31. |