可编辑数据表中的日期时间显示错误的日期

时间:2016-03-16 13:12:58

标签: javascript jquery .net model-view-controller jquery-datatables-editor

我正在使用.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日是星期二而不是周三。

datepicker

0 个答案:

没有答案