Skip to content

setMinutes()

Returns a new date with the minutes field replaced.

Example:

ts
setMinutes(new Date('2024-03-15T12:00:00'), 45);

Released under the MIT License.