xchinjo Posted February 15, 2017 Share Posted February 15, 2017 the red box is a value after select some day from dattimepicker inside grid how to chage value to 15/02/2017 Link to comment Share on other sites More sharing options...
Sherzod Posted February 15, 2017 Share Posted February 15, 2017 HI, Give a little more information, the steps to reproduce what you wanted. Best regards. Link to comment Share on other sites More sharing options...
xchinjo Posted February 15, 2017 Author Share Posted February 15, 2017 i want to change: uniGrid field value from "Wed Feb 15 2017 00:00:00 GMT+0700 (SE Asia Standard Time)" to "15/02/2017" Link to comment Share on other sites More sharing options...
Sherzod Posted February 15, 2017 Share Posted February 15, 2017 Hi, You can use DisplayFormat property of your TDateTimeField Also use FormatSettings: procedure TMainForm.UniFormCreate(Sender: TObject); begin {$ifdef COMPILER_14_UP} with FormatSettings do {$endif} begin LongDateFormat := 'dd/mm/yyyy'; ShortDateFormat := 'dd/mm/yyyy'; DateSeparator:='/'; end; end; Best regards. Link to comment Share on other sites More sharing options...
xchinjo Posted February 15, 2017 Author Share Posted February 15, 2017 thank a lot . i try function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns[1].renderer = Ext.util.Format.dateRenderer('d/m/Y'); columns[2].renderer = Ext.util.Format.dateRenderer('d/m/Y'); } it work fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now