Skip to content

isSameOrBetween Type documentation

(current: Date, from: Date, to: Date) => boolean
Function
Compare the current date is the same date or between start and end date.
Returns true if the date is in the provided range.
Parameters
the date object.
current: Date
optional min date, if no value is provided we assume true for the min value.
from?: Date
optional max date, if no value is provided we assume true for the max value.
to?: 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.