foundation-filters.timewindowparams
Home > @genesislcap/foundation-filters > TimeWindowParams
TimeWindowParams type
TimeWindowParams
Signature:
export type TimeWindowParams = {
readonly start?: string;
readonly end?: string;
};
Remarks
Both params can be provided in any format recognized by the Date.parse() method.
Example 1
{
"start": "Sun Sep 25 2022 16:51:55 GMT+0000",
"end": "Fri Nov 25 2022 17:51:55 GMT+0000"
}
Example 2
{
"start": "2022-10-01",
"end": "2022-12-01"
}
Example 3
{
"end": "Dec 31, 2022"
}
Example 4
{
"start": "2023-01-01T00:00:00.000+00:00"
}