Delphi - -   
 A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z         
System     SysUtils     StrUtils     DateUtils     FileCtrl     ConvUtils     StdConvs     Math     Classes     Dialogs     Types     Variants     Unit   Compiler directives     Directives     Keywords     Types     Variables     Constants     Functions     Procedures       


Delphi
TFormatSettings
thread-safe SysUtils unit
   type TFormatSettings = record
            CurrencyFormat : Byte;
             NegCurrFormat : Byte;
         ThousandSeparator : Char;
          DecimalSeparator : Char;
          CurrencyDecimals : Byte;
             DateSeparator : Char;
             TimeSeparator : Char;
             ListSeparator : Char;
            CurrencyString : string;
           ShortDateFormat : string;
            LongDateFormat : string;
              TimeAMString : string;
              TimePMString : string;
           ShortTimeFormat : string;
            LongTimeFormat : string;
           ShortMonthNames : array[1..12] of string;
            LongMonthNames : array[1..12] of string;
              ShortDayNames : array[1..7] of string;
              LongDayNames : array[1..7] of string;
 TwoDigitYearCenturyWindow : Word;
 end;
TFormatSettings Windows thread-safe .

, , .
DateTimeToStr   TDateTime

Format  

StrToDateTime   TDateTime

 
:
var
  formatSettings : TFormatSettings;

begin
  //
  GetLocaleFormatSettings(LOCALE_SYSTEM_DEFAULT, formatSettings);

  // CurrToStrF
  ShowMessage('1234.56 = '+
              CurrToStrF(1234.56, ffCurrency, 4, formatSettings));
end;
1234.56 formats as $1,234.5600
 



Delphi   |     |   - " "  |     |