Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Date sorting issue with "Ultimate date/time sorting..."

$
0
0

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?


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>