如何在MVC中使用剑道ui Javascript中的日期类型字段

如何在MVC中使用剑道ui Javascript中的日期类型字段,javascript,asp.net-mvc,kendo-ui,datepicker,Javascript,Asp.net Mvc,Kendo Ui,Datepicker,我正在创建一个示例应用程序,并使用KendoUI内联编辑网格 问题是:action controller中的not come date字段值 查看页面代码为: 输出为 在我的行动中,我得到了不同的约会 发布一个完整的脚本。。。您的脚本缺少数据源..是它的半个脚本,因为不需要在这里制作完整的脚本,因为有时很长的解释是导致答案可能不正确的原因。如果你想看到完整的脚本,那么我会更新它。 <script type="text/javascript"> $(document).read

我正在创建一个示例应用程序,并使用KendoUI内联编辑网格

问题是:action controller中的not come date字段值

查看页面代码为:

输出为

在我的行动中,我得到了不同的约会


发布一个完整的脚本。。。您的脚本缺少数据源..是它的半个脚本,因为不需要在这里制作完整的脚本,因为有时很长的解释是导致答案可能不正确的原因。如果你想看到完整的脚本,那么我会更新它。
<script type="text/javascript">
    $(document).ready(function () {


        $("#grid").kendoGrid({
            dataSource: {
                type: "json",
                transport: {
                    read: {
                        url: "@Html.Raw(Url.Action("CriticalDateList", "Home"))",
                        type: "POST",
                        dataType: "json"  
                    },

                    create: {
                        url: "@Html.Raw(Url.Action("InsertCriticalDate", "Home"))",
                        type: 'POST',
                        dataType: "json"
                    },
                },
                change: function (e) {
                    if (e.action == "itemchange") {
                        e.items[0].dirtyFields = e.items[0].dirtyFields || {};
                        e.items[0].dirtyFields[e.field] = true;
                    }
                },
      batch: true,
                        schema: {
                            data: "Data",
                            total: "Total",
                            errors: "Errors",
                            model: {
                                id:"Id",
                                fields: {
                                    Id: { editable: false},
                                    Date: { editable: true, type: "date" },

                                }
                            }

                        },

                        error: function (e) {
                            //display_kendoui_grid_error(e);
                            this.cancelChanges();
                        },
                        pageSize:5,
                        serverPaging: true,
                        serverFiltering: true,
                        serverSorting: true
                    },
                        pageable: true,
                        height: 500,
                        toolbar: ["create"],
                        columns: [

                            {field: "Date", title: "Date", format: "{0:dd-MMM-yyyy hh:mm:ss tt}", parseFormats: ["yyyy-MM-dd'T'HH:mm:ss.zz"], width: "130px"},
                            { command: ["edit", "destroy"], title: "Action", width: "250px" }],
                        editable: "inline"

                    });
    public ActionResult InsertCriticalDate(CriticalDateModels model)
    {
        return null;
    }