ExtJS DateFormat Issue

I did not find an existing question on this exact problem (there were several similar ones, but that did not help).

I have a GridPanel with exam results, including when the exam was completed. The date returned from the SQL server is formatted as " yyyy-mm-dd hh: mm: ss.uuu " (2011-04-15 19: 45: 13.197).

My problem is that although the time is 19:45, it always displays as 7:45 in the morning.

The date format that I use in the data warehouse is' Ymd H: i: s ' and F j, Y, g: i A 'in the column model, I tried several different options in the data warehouse, and none of them have any values, even if they work at all.

thanks

+4
source share
1 answer

You can try the following: in Using the store type:'date', dateFormat: 'c' in the column use xtype: 'datecolumn', format: 'Ymd H:i:s' , which work for me.

+2
source

All Articles