Skip to content

addDaysInRange Type documentation

(current: Date, daysOffset: number, minDate: Date, maxDate: Date) => Date
Function
Calculate a new date based on the offset while considering the min and max date.
-
Returns new date if the range is valid or original date
Parameters
input date.
current: Date
numeric offset of days.
daysOffset: number
minDate?: 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.