Note: When I was working on the OA system today, I encountered a problem: I was assigning the time type value in the database to datefield (passed through gson ), the value passed by gson is in the format of on January 11 ,.
But the datefield format is Y-m-D (2012-11-11). When I thought it was a data error, I changed the datefield format to yyyy-mm-dd hh: MM: SS format. The result is still unavailable. I am a little hit with TMD,
Later I thought that the string was uploaded in the background and the date value assigned to ext was incorrect,
So I do it:
Success: function (G, H) {var E = ext. util. JSON. decode (H. response. responsetext ). data; var startdate = E ['trainingstarttime']; var trainingstarttime = new date (date. parse (startdate. replace (/-/g, "/"); Ext. getcmp ("trainingstarttime "). setvalue (trainingstarttime. format ('Y-m-d '));},
Then OK
Later I thought why ext didn't help me.