dataSource: { transport: { read: { url: "@Url.Content("~/MyDesk/CaseAnalysisPlatform/GetOfflinePlanList")", dataType: "json", data: { caseId: "@ViewBag.CaseId" }, type: "POST" } }, pageSize: 20, serverPaging: true, serverSorting: true, schema: { model: { fields: { CREATEDATE: { type: "date" } } }, data: function (response) { return response.Data; }, total: function (response) { return response.Total; } } }
field: "CREATEDATE", width: 60, format: "{0: yyyy-MM-dd HH:mm:ss}"
上面两个标红的区域都写上才能设置 grid列里的时间格式。