1

I have a grid that has a date field.

When a json POST is made to the server, the data that's sent looks like this: "2013-09-13T16:40:34.301Z", and a PUT looks like this: "2013-09-13T04:00:00.000Z". So it looks like the same format, but the POST is including some screwy time value and the PUT some other screwy time value (neither of which are correct).

I want to only send the DATE. Anyone have any idea?

                kendoGrid.....
                model: {
                id: "ID",
                fields: {
                    ID: {
                        editable: false,
                        type: "number"
                    },

                    START_DATE: {
                        field: "START_DATE",
                        type: "date",
                        format: "{0:MM/dd/yyyy}",
                        validation: {
                            required: true
                        }
                    },
4

1 回答 1

2

使用Data函数(上传或创建配置)以不同的格式发送该日期,或使用parameterMap更改现有格式。

于 2013-09-15T20:44:30.247 回答