I was having trouble getting my grid to show the correct date it was showing “2013-8-11” instead of “2013-8-12” . I fixed my problem by defining the datafield as a date and then defining the cellsformat to “yyyy-MM-dd”. it appeared that everything was fixed, then when I try to apply an external filter to the grid (by redefining the source) it goes back to its old ways of showing the incorrect date…
define datafield in source:
{ name: 'week_start', type: 'date' }
define column in grid init:
{ text: "Week Start" , datafield: "week_start", columntype: 'datetimeinput', cellsformat: "yyyy-MM-dd", filtertype: 'date', width: 100 }
JSON returned: “2013-8-12”
Date shown: “2013-8-12” (YAYYY it’s working)
NOW, when i redefine source AND columns:
JSON returned: “2013-8-12”
Date shown: “2013-8-11” (WHY THE HECK is it doing this? I’ve followed all the same steps as in the grid init….)