Skip to content

addYearsInRange Type documentation

(current: Date, yearsOffset: number, minDate: Date, maxDate: Date) => Date
Function
Get date delta specifically for years based on the offset.
-
Returns a new date object with the updated year.
Parameters
starting date.
current: Date
numeric offset of years.
yearsOffset: number
optional minimum allowed date.
minDate?: Date
optional maximum allowed date.
maxDate?: Date

Types Documentation

No types to document for items on this page.


Except where otherwise noted, content on this site is licensed under MIT License.