PDA

View Full Version : Date format



nissan14484
7 Feb 2011, 3:31 AM
Hi,

I'm trying to build an editorGridPanel, and I'm having some trouble with the date cells.

For some reason, when I define a column to be date formatted, although I define it as 'Y-m-d' it shows a full date with a GMT code... for example: instead of showing 2011-02-04, it will show:
Fri Feb 04 2011 00:00:00 GMT+2000....

Once I tried to change the format from 'date' to 'string', the date looked as I wished.
but than I got into a new problem: if I want the date to be editable as date, I must define him as 'date' in the editor definition. but in that case, after the edit will be fired, the cell format will be 'date' again and not string, and than the cell will once again - show Fri Feb 04 2011 00:00:00 GMT+2000 instead of 2011-02-04....

Am I missing something here? Can anyone help me please?

Thanks,
Nissan.