1
Hi Vinay,
Please find the below link.
https://www.codeproject.com/tips/355235/how-to-search-between-two-dates-and-get-all-record
1
@Vinay
It has always been observed for many times that the problem is occuring with only the date formats
Always use the universal format 'yyyy-MM-dd' format instead using 'MM-dd-yyyy'. You can change its format whichever suits the clients.
try searching like this
select * from tablename where date between '2016-12-01' and '2017-02-01'
1
Hi ,
I can not understand you question clearly ! Do you mean that?
1
HI Vinay,
Try your code first in your DB, if it is working fine , check whether the DB and system format both are same or not.
try this URL, It may help you
http://stackoverflow.com/questions/14353434/selecting-data-between-2-dates
http://stackoverflow.com/questions/16447877/c-sharp-between-two-dates-search
http://stackoverflow.com/questions/35272405/how-to-search-between-two-dates-in-c-sharp-with-ms-access
http://www.c-sharpcorner.com/forums/search-between-two-dates