Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function subISOWeekYears
import { subISOWeekYears } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/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