Does DateTime Moment Sorting Handle Blank/Null Dates?

Does DateTime Moment Sorting Handle Blank/Null Dates?

chobo2chobo2 Posts: 23Questions: 2Answers: 0

Hi

I am wondering with the DateTime Moment sorting plugin does it handle blank/null dates? I have a column that has this format: 03/09/2017 but it also could have blank dates.

I added this to my code:

$.fn.dataTable.moment( 'MM/DD/YYYY' );

I am not sure if it is enough, sometime it looks like it gets choked up on the bad dates and my sorting does not work 100%(sometimes I sort and I get like
blank date, date, blank date....when I expected something like
blank date, blank date, **date **or
**date **blank date, date)

This discussion has been closed.