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
![YoDavish](https://secure.gravatar.com/avatar/0a2fe30e8287852327ddce190e83cbdf/?default=https%3A%2F%2Fvanillicon.com%2F0a2fe30e8287852327ddce190e83cbdf_200.png&rating=g&size=120)
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