Sort column by Date time which is inside a span
Sort column by Date time which is inside a span
![Starz26](https://secure.gravatar.com/avatar/8fb4dde26c08682d4f099c46462c3463/?default=https%3A%2F%2Fvanillicon.com%2F8fb4dde26c08682d4f099c46462c3463_200.png&rating=g&size=120)
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
This discussion has been closed.
Answers
any help would be appreciated