The result Date
type, it is the type returned from the context function if it is passed, or inferred from the arguments.
The date to be changed
The amount of years to be subtracted.
Optional
options: SubYearsOptions<ResultDate>An object with options
The new date with the years subtracted
The
Date
type, the function operates on. Gets inferred from passed arguments. Allows to use extensions likeUTCDate
.