Jump to content

Setting the date format VCL vs ISAPI


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.

 

post-1507-0-53265900-1407283220_thumb.jpg

post-1507-0-98265300-1407283449_thumb.jpg

Link to post
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.

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.

  • Upvote 1
Link to post
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. 
 
Grateful.

 

 
Grateful.
  • Upvote 3
Link to post
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.

Guest
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...