Custom filtering - range search on Date

Custom filtering - range search on Date

rlangille2rlangille2 Posts: 10Questions: 3Answers: 0

Hi,

I am using editor and I am using the..

def: function () { return new Date(); }

as my form fields, which creates a datepicker for data entry. These date values are being stored in my database.

I am trying to use the custom filtering - range, example on this site, but I can't figure out what I need to alter, to change the search from age to date.

https://datatables.net/examples/plug-ins/range_filtering

Changing the (html) min and max field to a datepicker would be a bonus, but isn't necessary. Does anyone now how to turn the simple example on this site to process a date range instead?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,864Questions: 1Answers: 10,136 Site admin

    Have a look at YADCF which provides that sort of ability and more.

    Allan

  • rlangille2rlangille2 Posts: 10Questions: 3Answers: 0

    What if I am using bootstrap framework with datatables? YADCF says I need to use jQuery UI.

  • allanallan Posts: 61,864Questions: 1Answers: 10,136 Site admin

    You'd probably need to write a custom date range filter in that case. I'm afraid I don't have a tutorial on that specific use case.

    Allan

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67
    Answer ✓

    Hi

    Yadcf works with bootsrtap / jquery ui / whatever you want it.. @rlangille2 please point me to where "YADCF says I need to use jQuery UI."

    Thanks

This discussion has been closed.