I am working on a project in which i am using Jquery Datepicker to select to and from date to filter records,
I have DateTime field in my Database table and on selecting date from datepicker i am doing ajax call,
the problem is arising is that in my database i have records with time(eg: 2009-08-08 13:12:23.143)
and from datepicker i am having record without time(ie 2009-08-08), I have converted it to DateTime but still i am having same record, Because of this difference my query returns null result, Can any one suggest how to handle this?
Regards
Use only the date part of DateTime object (if you do not want to consider time) for filter… in your where clause of query, do like this