oTable.fnFilter

oTable.fnFilter

sonicbugsonicbug Posts: 26Questions: 0Answers: 0
edited April 2011 in General
Hi Allan:

I have encountered an issue with not being able to filter on a particular date. I would like to accomplish the following:

Have dataTables show records matching today's date when the page loads, if no records match I would like to show those issued yesterday. I had this working, but then things broke somewhere along the way. Just recently I realized that I am not being able to filter on today's date. I am using the expression below. This seems to be returning all records in a particular month.

oTable.fnFilter(year + ' ' + monthNames[dateObj.getMonth()] + ' ' + today);

What are I overlooking?

Your response is much appreciated.

Thanks,
This discussion has been closed.