* @summary Subtract the specified number of weeks from the given date.
7
*
8
* @description
9
* Subtract the specified number of weeks from the given date.
10
*
11
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
*
13
* @param date - The date to be changed
14
* @param amount - The amount of weeks to be subtracted.
15
*
16
* @returns The new date with the weeks subtracted
17
*
18
* @example
19
* // Subtract 4 weeks from 1 September 2014:
20
* const result = subWeeks(new Date(2014, 8, 1), 4)