Skip to content

Instantly share code, notes, and snippets.

@ziyahan
Created November 27, 2014 08:51
Show Gist options
  • Save ziyahan/e5545b1f3ec7572fe690 to your computer and use it in GitHub Desktop.
Save ziyahan/e5545b1f3ec7572fe690 to your computer and use it in GitHub Desktop.
parse: function(response) {
var tmpData=[];
for (var i = 0; i < response.length; i++) {
var tmpRow = response[i];
$.each(tmpRow, function(colNo, colValue){
if(colNo.indexOf("Date")>-1){
tmpRow[colNo]=kendo.parseDate(new Date(tmpRow[colNo]));
}
});
tmpData.push(tmpRow);
}
return tmpData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment