Skip to main content
Version: Current

foundation-filters.timewindowfilter

Home > @genesislcap/foundation-filters > timeWindowFilter

timeWindowFilter() function

TimeWindow client filter function.

Signature:

export declare function timeWindowFilter(start?: string, end?: string): boolean;

Parameters

ParameterTypeDescription
startstring(Optional) The start of the time window.
endstring(Optional) The end of the time window.

Returns:

boolean

Remarks

This will return true between a certain time window. Start and end can be provided in any format recognized by the Date.parse() method.