JavaScript Date setMinutes()
The setMinutes() method is used for setting the minutes of a date. It can also be used to set the seconds and milliseconds.
Syntax:-
Its syntax is:- Date.setMinutes(min, sec, milliseconds)
Return:-
Its return is:- number of milliseconds of new date from 1 January, 1970
Further Explanation:-
ParameterDescription minRequired. An integer represents the minutes from 0 - 59. secOptional. An integer representing the second from 0 - 50. millisecondsOptional. An integer representing the milliseconds from 0 - 999.