In pivot grid when loading itself i want to display data for today date?

I have been trying to display data only for today date.I have a column named date ,so if that date is today then that date should be display while displaying of pivot table itself .I am not sure how to perform this filtration and where to use the $$("pivot").$$("data").filter(function(obj){} method whether in on:{} or in onBeforeRender{} of pivot grid. Below is the logic i have return for comparison of date.Can anyone pls help with this ?Thanks

 var date_format = webix.Date.strToDate("%d/%m/%Y");
 var myformat = webix.Date.dateToStr("%d/%m/%Y");
 var objdate=date_format(obj["str_'_Date"]);
  var today = myformat(new Date());
   var today = date_format(today);
if(!(objdate.valueOf() ==today.valueOf())){


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!