I am using the datatables jquery plugin and want to sorty by dates.
I know they got a plugin but I can\'t find where to actually download it from
http://data
As of 2015, the most convenient way according to me to sort Date column in a DataTable, is using the required sort plugin. Since the date format in my case was dd/mm/yyyy hh:mm:ss, I ended up using the date-euro plugin.
All one needs to do is:
Step 1: Include the sorting plugin JavaScript file or code and;
Step 2: Add columnDefs as shown below to target appropriate column(s).
$('#example').dataTable( {
columnDefs: [
{ type: 'date-euro', targets: 0 }
]
});