Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>setMinutes

date-fns Deno package
Go to Latest
function setMinutes
import { setMinutes } from "https://deno.land/x/date_fns@v2.12.0/index.js";

Examples

// Set 45 minutes to 1 September 2014 11:30:40: var result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) //=> Mon Sep 01 2014 11:45:40

Parameters

dirtyDate
  • the date to be changed
dirtyMinutes
  • the minutes of the new date