Jump to content

Setting the date format VCL vs ISAPI

Sistema Fenix

Recommended Posts

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.




Link to comment
Share on other sites

Hi Fenix.

I think there are a few ways to do this, one of the ways you can use the column's renderer.


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.

  • Upvote 1
Link to comment
Share on other sites

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. 


  • Upvote 3
Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...