JavaScript Date setUTCMinutes()
JavaScript Date setUTCMinutes()
The setUTCMinutes() method is used for setting the minutes of a date object according to UTC. It can also be used to set seconds and milliseconds.
Syntax:-
Its syntax is:- Date.setUTCMinutes(min, sec, millisec)
Return:-
Its return is:- number of milliseconds of new date from 1 January, 1970
Further Explanation:-
Parameter | Description |
---|---|
min | Required. An integer represents the minutes from 0 - 59. |
sec | Optional. An integer representing the seconds from 0 - 59. |
milliseconds | Optional. An integer representing the milliseconds from 0 - 999. |