DataTable sort time is not working
DataTable sort time is not working
 pyy            
            
                Posts: 1Questions: 1Answers: 0
pyy            
            
                Posts: 1Questions: 1Answers: 0            
            Page script js:
$.fn.dataTable.moment( 'MM/DD/YYYY' );
// omit the process of creating dom element...
$(table)
                .find("table")
                .DataTable({ 
                    ordering: true,
                    order: [], 
                    destroy: true,
                    "dom": 'Bfrtip',
                    buttons: [
                        {
                            extend: 'csv',
                            title: fileName
                        }
                    ]
});

quite wondering how to solve this, appreciated to the help of any kinds
This discussion has been closed.
            
Answers
DataTables supports ISO8601 date strings by default only. There are a number of plug-ins available for other formats. The most flexible is the MomentJS sorting plug-in for DataTables.
Allan