search between two date with sfDateTimeEdit

I have two sfDateTimeEdit , one "from" and the other "to", which I use to specify a period between two dates,

from a database

The list contains

2022/10/25

2022/10/26

2022/10/27

And only appears

2022/10/26

2022/10/27

2022-10-28 14_13_45-.png


Code :

2022-10-28 14_15_18-StdDgree - Microsoft Visual Studio.png

What I want is to include date picked in "from" ... is that possible

thank you



1 Reply

GT Gokul Thanudhas Syncfusion Team November 1, 2022 03:26 PM UTC

Hi Anas,


As the DateTime property will also contain the time value, please use the below code snippets to compare the date alone


sfDateTimeEdit1.Value.Value.ToShortDateString();


Regards,

Gokul T


Loader.
Up arrow icon