function onLoad(args) {
for (var i = 0; i < pivot_dataset.length; i++) {
var val = (pivot_dataset[i])["Date"]; // Select field to set desired date format
val = new Date(val);
//ej.widgetBase.formatting("{0:" + DateTime format string + "}", value, localization);
pivot_dataset[i].Date = ej.widgetBase.formatting("{0:" + "MM'/'dd'/'yyyy" + "}", val, "es-ES"); // To convert the date format as per the applied format string and localization
}
args.model.dataSource.data = pivot_dataset;
}
|