简体   繁体   中英

How to remove GMT +530 from datetime column of kendo grid in jquery

I am using kendo grid and there are some editable columns. I edit EXPECTED_DOSING column to 26-10-2018 20:30 but when i try to get whole grid data in jquery this EXPECTED_DOSING column shows data like Fri Oct 26 2018 20:30:00 GMT+0530 (India Standard Time) and when i convert it into JSON.stringify it show me like 2018-10-26T15:00:00.000Z . At the end a time will change from actual time. Please help me to set this.

Note: I Get Whole Grid Data not a single data. and this is how i get grid data.

$("#grid").data('kendoGrid').dataSource.data();

Here grid is my kendo grid name.

The Kendo UI Datepicker uses JavaScript Date object internally to hold the selected date value. Thus, dates are always created with the browser's offset. In order to overcome this behavior, process the date and offset it before setting the value of the DatePicker widget.

Here is a sample on how this could be achieved:

http://dojo.telerik.com/eXOgemoW

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM