Overview
Simple Date Filter
The SimpleDateFilter<T>
filter can be applied to DateTime
and DateOnly
properties as well as their nullable versions. It will return all records where the target properties' date matches the date provided by the user. For a more detailed example, you can view the source code of this page here.
Id ⥯ |
DateTime (No Time) ⥯ |
DateTime ⥯ |
DateOnly ⥯ |
---|---|---|---|
No records! | |||
Displaying Page: 1 of 0 (0 total records)
|
Parameters
The following parameters can be set for each SimpleDateFilter<T>
Parameter | Type | Description | Default Value |
---|---|---|---|
DefaultValue |
DateTime? |
If set, this filter wil be active when the table loads and will filter the target property with the provided value | null |
Min |
DateTime? |
Will set the min property on the filter date input |
null |
Max |
DateTime? |
Will set the max property on the filter date input |
null |
IncludeTime |
bool |
Determines if time should be included when applying the filter as well as sets the filters input type to datetime-local is true. (This will always be false for DateOnly properties). |
false |