import { default } from "https://deno.land/x/date_fns@v2.22.0/subMonths/index.ts";
Examples
// Subtract 5 months from 1 February 2015:
const result = subMonths(new Date(2015, 1, 1), 5)
//=> Mon Sep 01 2014 00:00:00
// Subtract 5 months from 1 February 2015: const result = subMonths(new Date(2015, 1, 1), 5) //=> Mon Sep 01 2014 00:00:00
Parameters
dirtyDate: Date | number
- the date to be changed