The Date type, the function operates on. Gets inferred from passed arguments. Allows using extensions like UTCDate.
Date
UTCDate
The result Date type, returned from the context function, or inferred from the arguments.
The date to be changed
The minutes of the new date
Optional
An object with options
The new date with the minutes set
setMinutes
Set the minutes to the given date.
// Set 45 minutes to 1 September 2014 11:30:40:const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)//=> Mon Sep 01 2014 11:45:40 Copy
// Set 45 minutes to 1 September 2014 11:30:40:const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)//=> Mon Sep 01 2014 11:45:40
The
Datetype, the function operates on. Gets inferred from passed arguments. Allows using extensions likeUTCDate.