Date Conversion from Django Template to JavaScript

In E-invoicing(Fatoorah) project there was a requirement to use DataTables <td> object.time_stamp.isoformat </td> $.fn.dataTable.ext.search.push( function(settings, data, dataIndex) var min = minDate.val(); var max = maxDate.val(); let dateTime = data[1]; // here !!!!!!!!!!!!! var date = new Date(dateTime); if ( (min === null && max === null) || (min === null && date <= max) || (min <= date && max === null) || (min <= date && date <= max) ) return true; return false; ); From here: https://stackoverflow....

April 4, 2022 · 1 min · Jaaved Khan