Date/Time and other International settings

Submitted by:Pitter Alderson

Date added:21 March, 2011

Category:Delphi

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings.
We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

Tags: date formatting , time formatting

Code Snippet:

begin
DecimalSeparator := '.';
ThousandSeparator : = ',';
ShortDateFormat := 'mm/dd/yy';
end;
 
 

Comments