Sort by date format "%d/%m/%Y %H:%i:%s"

Sort by date format "%d/%m/%Y %H:%i:%s"

psikepsike Posts: 13Questions: 0Answers: 0
edited December 2009 in General
Thanks for this script
Whether but it is planned to make sorting by date format "%d/%m/%Y %H:%i:%s" (example 26/12/2009 13:56:01) ?
Such decision I saw in a script http://tablesorter.com/docs/

Replies

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Hi psike,

    The only date sorting that DataTables includes internally is that supported by Javascript's Date.parse() method. There are currently no plans to extend this to other formats in the core distribution, but it is trivial to use a plug-in sorting function to sort any data in any format you want:

    Development info: http://datatables.net/development/sorting
    Plug-in sorting functions already available: http://datatables.net/plug-ins/sorting (including several date sorting plug-ins)
    Example using a sorting plug-in: http://datatables.net/examples/api/sorting_plugin.html

    Regards,
    Allan
This discussion has been closed.