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