I want to convert the time data from the database, its work perfectly on the Chrome and Firefox but not at Safari, its come out an error showing that this line of code having range error.
{ "data": "created_date",
"render": function ( data, type, row, meta ) {
var d = new Date(data);
var curr_date = d.getDate();
var curr_month = d.getMonth();
var curr_year = d.getFullYear();
return d.toISOString() //error come in here
return curr_date + "-" + curr_month + "-" + curr_year;
}
},