Sort column by Date time which is inside a span

Sort column by Date time which is inside a span

Starz26Starz26 Posts: 38Questions: 1Answers: 0

Trying to sort a column by date / time. The date part sorts fine but it seems to ignore the time. I tried the info here to no avail:

https://datatables.net/blog/2014-12-18

I used:

$.fn.dataTable.moment( 'MM/DD/YYYY HH:mm A' );

I am trying to sort on data in the TD that is like THIS:

<span id="j_id0:j_id14:tbldata:1:j_id40">12/20/2014 9:56 PM</span>

Everything else works correctly, I just need to get the time sorted properly

Thanks.

Debug code: https://debug.datatables.net/urelil

Answers

This discussion has been closed.