문제

I bineded a form to one grid and tried to make a calendar input by using this:

{ type: "calendar", dateFormat: "%Y-%m-%d %H:%i:%s", name:"creationdate", label:"", labelWidth:250, labelAlign:"left", readonly: false, enableTime: true, calendarPosition: "under", labelLeft:825, labelTop:75, inputWidth:297, inputLeft:303, inputTop:116 }

After i select the date, it is shown in this format 2013-04-15 07:35:00 but after i hit saved it's shown in this format to my grid: Mon Apr 15 2013 07:35:00 GMT+0300 (GTB Daylight Time). How can i make it to show in the same format as in my calendar input?

The problem is that this format it's not saved in my DB.

도움이 되었습니까?

해결책

The solution is to set the date format to my grid:

grid.setDateFormat("%Y-%m-%d %H:%i:%s");

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top