Formatted Date using Moment with AM/PM and TimeZone does not sort in FireFox
Formatted Date using Moment with AM/PM and TimeZone does not sort in FireFox
Using this code:
$.fn.dataTable.moment('YYYY-mm-dd HH:mm:ss tt zz');
To format the date and it works and sorts fine in Chrome, but the sort button does nothing in FireFox, it does display the date correctly in both. I'm assuming I need to render it somehow, but I've been unable to solve it.
columnDefs: [ { targets: 6, render: [DATETIME AM/PM TIMEZONE] }], This discussion has been closed.
Answers
Maybe try a Datetime renderer. If you still need help please provide a test case showing an example of your dates so we can help with the format, etc.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin