Sistema Fenix Posted August 6, 2014 Share Posted August 6, 2014 Hello everybody! Please, I'm racking my brains to solve the date format. At the date VCL is exactly as I want, but when I compile and publish in IIS format is completely different. Have I set the regional settings of the server, but to no avail. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 6, 2014 Share Posted August 6, 2014 Hi Fenix.I think there are a few ways to do this, one of the ways you can use the column's renderer.Try: UniDBGrid1 -> ClientEvents -> ExtEvents -> ... function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[4].renderer = Ext.util.Format.dateRenderer('d/m/Y H:i:s'); columns[5].renderer = Ext.util.Format.dateRenderer('d/m/Y'); } Best regards. 1 Quote Link to comment Share on other sites More sharing options...
gcaramia Posted August 6, 2014 Share Posted August 6, 2014 Try: In MainForm.Create ShortDateFormat := 'dd/mm/yyyy'; LongDateFormat := 'dd/mm/yyyy'; 1 Quote Link to comment Share on other sites More sharing options...
Sistema Fenix Posted August 6, 2014 Author Share Posted August 6, 2014 Thanks for all answers. I opted: System.SysUtils.FormatSettings.ShortDateFormat := 'dd/mm/yyyy'; System.SysUtils.FormatSettings.LongDateFormat := 'dd/mm/yyyy'; System.SysUtils.FormatSettings.ShortTimeFormat := 'hh:mm'; System.SysUtils.FormatSettings.LongTimeFormat := 'hh:mm:ss'; System.SysUtils.FormatSettings.CurrencyString := 'R$ '; System.SysUtils.FormatSettings.TimeAMString := ''; System.SysUtils.FormatSettings.TimePMString := ''; This option set all formats of all screens. Grateful. Grateful. 1 3 Quote Link to comment Share on other sites More sharing options...
DeHeus Posted February 15, 2019 Share Posted February 15, 2019 A tip for anyone who finds this thread and who wants to change the format of numbers or dates, check http://www.unigui.com/doc/online_help/formatsettings-.htm for information about the (correct) usage of FormatSettings. 1 1 Quote Link to comment Share on other sites More sharing options...
ashraf elnegamy Posted May 29 Share Posted May 29 On 8/6/2014 at 4:50 AM, Sherzod said: Hi Fenix. I think there are a few ways to do this, one of the ways you can use the column's renderer. Try: UniDBGrid1 -> ClientEvents -> ExtEvents -> ... function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[4].renderer = Ext.util.Format.dateRenderer('d/m/Y H:i:s'); columns[5].renderer = Ext.util.Format.dateRenderer('d/m/Y'); } Best regards. how to add column no in run time columns[column no]? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29 Share Posted May 29 @ashraf elnegamy Hello, Which edition and build of uniGUI are you using? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.