FilterValue.FromDateTime(DateTime, Boolean) Method
In This Article
Converts the DateTime object to a filter value using the specified date system.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
public static FilterValue FromDateTime(
DateTime value,
bool use1904DateSystem
)
#Parameters
Name | Type | Description |
---|---|---|
value | Date |
A Date |
use1904Date |
Boolean | true, to use the 1904 date system; otherwise, false. |
#Returns
Type | Description |
---|---|
Filter |
A Filter |
#Remarks
If you use the 1904 date system, the date is represented as a serial number of elapsed days since January 1, 1904. False value indicates that the 1900 date system is used, where January 1, 1900 is the first day in the system. By default, the workbook uses the 1900 date system.
See Also