Type Alias: DateInterval
DateInterval: {
after
:Date
;before
:Date
; }
An interval of dates. Differently from DateRange, the range ends here are not included.
Type declaration
Name | Type |
---|---|
after | Date |
before | Date |
Example
// Match the days between the 2nd and the 5th of February 2019
const matcher: DateInterval = {
after: new Date(2019, 1, 2),
before: new Date(2019, 1, 5)
};