Hi, I am using Razor to populate a table in which a column has a 'string date' returned such as "20 Dec 2019".
- I am using "$.fn.dataTable.moment('dd MMM yyyy')" to try to sort the column (ignores this).
- I have tried "DD MMM YYYY" and various other combinations.
- I have the moment.js and the datetime-moment.js declared in my _Layout.cshtml.
- I am using the .DataTable 'order' and 'columns' declarations to specify the default sort order and which columns can be sorted.
Am I correct in binding the table column to a date string? Is the columns restriction cancelling out the moment declaration?
Any other hints please?