Hi All,
I am binding Xml data to a grid. Following is the script I used to create the grid. In that script there is a one field TimeCreated which the type is in date format and the actual result of that field looks like
"2012-09-21T21:59:26.6929846+05:30 " how can i format this to get the time part seperate and
date in "yyyy/MM/dd"(please note that i am using xml)
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: "HandlerErrorLog.ashx"
},
pageSize: 8,
schema: {
type: "xml",
data: "Errors/E2ETraceEvent",
model: {
fields: {
TimeCreated: "System/TimeCreated/@SystemTime",
ApplicationData: "ApplicationData/text()"
}
}
}
}),
scrollable: false,
sortable: true,
filterable: true,
selectable: "multiple row",
pageable:true
});
});
</script>
I am binding Xml data to a grid. Following is the script I used to create the grid. In that script there is a one field TimeCreated which the type is in date format and the actual result of that field looks like
"2012-09-21T21:59:26.6929846+05:30 " how can i format this to get the time part seperate and
date in "yyyy/MM/dd"(please note that i am using xml)
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: "HandlerErrorLog.ashx"
},
pageSize: 8,
schema: {
type: "xml",
data: "Errors/E2ETraceEvent",
model: {
fields: {
TimeCreated: "System/TimeCreated/@SystemTime",
ApplicationData: "ApplicationData/text()"
}
}
}
}),
scrollable: false,
sortable: true,
filterable: true,
selectable: "multiple row",
pageable:true
});
});
</script>