This is a migrated thread and some comments may be shown as answers.

excluding dates when using Filter Between on Grid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 29 Mar 2012, 08:37 PM
Hi,

I'm using RadGrid and FilterTemplates in order to have a range of dates. When the user select from date "01/01/2012" and to date "10/01/2012" this filter all records that were made during that range of time. however, is excluding all those transaction that occurred the First and the tenth.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx  (Based on this sample)

I have defined DateFormatString as "MM/dd/yyyy" and is still excluding records. My query return datetime types meaning that the Date field is return date and time.

So how can I tried to convert them into string but is not filter correctly because it doesn't filter the year only days and months.

SO I would really appreciate your help or advice in this matter. Because I want to include those record that were made on January First and in the Tenth.
 

1 Answer, 1 is accepted

Sort by
0
Victor
Top achievements
Rank 1
answered on 30 Mar 2012, 12:35 AM
I fixed by setting the dateformat to "yyyy/MM/ddd"
Tags
Grid
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Top achievements
Rank 1
Share this question
or