I am new to javascript, i am getting date from query, but i want change another formate
$('#example1').DataTable({
"ajax": {
"url": "/txnlist/data",
"data": {"date":[[${date}]]},
"dataSrc": ""
},
"columns": [
{ "data": "id" },
{ "data": "AccountNumber" },
{ "data": "TransactionDate"} // date:032716
],
});
here i am getting date mmddyy,but i want yyyy-dd-mm. How to change it?