Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-beta.4/subMinutes/index.js";

Examples

// Subtract 30 minutes from 10 July 2014 12:00:00: var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) //=> Thu Jul 10 2014 11:30:00

Parameters

dirtyDate
  • the date to be changed
dirtyAmount
  • the amount of minutes to be subtracted