DataTables Date Formatting / Sorting ?
I have a Date String passed from FM that I would like to be able to sort. My columns.js contains a code snippet as follows where I am attempting to reformat the string to a date. Is this doable her or will I have to create a const that takes in the string and then converts it to a date.
const LocationOpenBalances = [
{ title: "Date",
data: "fieldData.Date_of_Service",
render: $fn.dataTable.render.Dateparse("MM/DD/YYYY"),
createdCell: function (cell, cellData, rowData) {
$(cell).addClass("text-center");
return `<a class="link-primary">${cell}</a>`;
},