Sistema Fenix Posted August 6, 2014 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
Sherzod Posted August 6, 2014 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
gcaramia Posted August 6, 2014 Posted August 6, 2014 Try: In MainForm.Create ShortDateFormat := 'dd/mm/yyyy'; LongDateFormat := 'dd/mm/yyyy'; 1 Quote
Sistema Fenix Posted August 6, 2014 Author 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
DeHeus Posted February 15, 2019 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
ashraf elnegamy Posted May 29, 2023 Posted May 29, 2023 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
Sherzod Posted May 29, 2023 Posted May 29, 2023 @ashraf elnegamy Hello, Which edition and build of uniGUI are you using? Quote
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.