We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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 10:26 AM

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.
Live Chat Icon For mobile
Up arrow icon