Reputation: 16963
I want to inject this code globally in all parameterMap
functions for all Kendo data sources:
for (var key in data) {
if (data.hasOwnProperty(key) && data[key] instanceof Date) {
// Convert the date object to a string using a standard ISO-8601 format
data[key] = kendo.toString(data[key], "yyyy-MM-ddTHH:mm:ss.fffZ");
}
}
How can I do that?
Upvotes: 0
Views: 40