subtractMonths
Subtracts a number of months from a TheDate.
Interactive example
Syntax
Classic signature
typescript
function subtractMonths<
GenericInput extends TheDate | SerializedTheDate,
GenericMonth extends number
>(
input: GenericInput,
month: GenericMonth
): TheDateCurried signature
typescript
function subtractMonths<
GenericInput extends TheDate | SerializedTheDate,
GenericMonth extends number
>(
month: GenericMonth
): (input: GenericInput) => TheDateParameters
month: Number of months to subtract.input:TheDateorSerializedTheDate.
Return value
A TheDate moved back by the given number of months.
