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

Filter date only for datetime field

1 Answer 738 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 26 May 2016, 03:36 PM

I tried different options but it seems form is obsolete and I don't know how to use filterMenuInit to filter date only for datetime field.  It will give me getTime() error when I select date in date filter.

columns: [
{ field: "EntryDate", title: "Date", attributes: { style: "text-align:left" }, width: "200px", template: "#= kendo.toString(kendo.parseDate(EntryDate, 'yyyy-MM-ddTHH:mm:ss'), 'dd MMM yyyy hh:mm:ss tt') #" },

 

I tried to insert a field of date only but it is empty.

schema: {
parse: function (d) {
$.each(d, function (idx, elem) {
elem.EntryDateOnly = kendo.parseDate(elem.EntryDate, "MM/dd/yyyy");
});
return d;
},

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 May 2016, 07:47 AM
Hi Bertha,

Please note that ignoring the time part is not supported out of the box. If you would like to implement such feature you can use an external filter and define a custom filter operator as described in the article below:



Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Bertha
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or