Support » Plugin: Table Sorter » How can I sort column with date value?

  • Hi,

    I installed the plugin and it worked, but it doesn’t work with columns that have date value, how can I do that?

    Please let me know when you will include this feature in your plugin, or if there’s a way that I can edit the plugin to make it work while waiting for update of the plugin.

    PS: My Date column format is “DD/MM/YYYY” e.x: 31/05/2017

    • This topic was modified 7 months, 3 weeks ago by  dzung.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d also be interested in the answer to this question. In particular it would be really nice if it also supported date ranges and sorted on the first date, e.g.

    31/05/2017
    or

    30/05/2017 – 31/05/2017

    or indeed
    30/05/2017 any junk here ignored

    Thanks

    Plugin Author Farhan Noor

    (@farhannoor)

    Hi,

    To make your date columns sortable, use this class in your Date column head dateFormat-ddmmyyyy

    You should do it like this <th class="dateFormat-ddmmyyyy">Last Date</th> You can change date format ddmmyyyy according to your own need.

    Cheers. Happy coding!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this review.