我正在使用.net MVC,我使用可编辑数据表来内联编辑数据。
我的代码如下
`<table>
<thead>
<tr>
<th>
Date
</th>
</tr>
</thead>
</table>
`
<script type="text/javascript" language="javascript">
function SetTable(result) {
editor = new $.fn.dataTable.Editor({
ajax: "/I/P",
table: "#tblI",
idSrc: 'I.IId',
fields: [
{ label: "Date", name: "I.Date", type: "datetime" },]
[});
</script>`
但Date calandar在一周的名字下显示错误的日期。 例如。 2016年3月16日是星期二而不是周三。