Thanks for this.
I modified the example, added a date column and changed the json to include YYYY/mm/dd values...
<th data-options="field:'date1',width:100,align:'center',formatter:formatDate1">Date</th>
function formatDate1(val,row){
return formattedDate(val);
}
function formattedDate(date) {
var d = new Date(date || Date.now()),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (month.length < 2) month = '0' + month;
if (day.length < 2) day = '0' + day;
return [day, month, year].join('/');
}
This code displays the dates as dd/mm/yyyy.
Perfect ! Thanks.