Skip to main content
Go to Latest
function subISOWeekYears
import { subISOWeekYears } from "https://deno.land/x/date_fns@v2.3.0/index.js";

Examples

// Subtract 5 ISO week-numbering years from 1 September 2014: var result = subISOWeekYears(new Date(2014, 8, 1), 5) //=> Mon Aug 31 2009 00:00:00

Parameters

dirtyDate
  • the date to be changed
dirtyAmount
  • the amount of ISO week-numbering years to be subtracted