FormatDateTime(Value: DateTime): String;
Value. Value converted into string type.
The FormatDateTime method converts the specified date and time value into string type according to regional standard settings.
Function GetInvariantDateTime(Value: DateTime): String;
Var
CI: ICultureInfo;
Begin
CI := CultureInfo.Invariant;
Return CI.FormatDateTime(Value);
End Function GetInvariantDateTime;
The specified function can be used to convert passed date and time into string type according to invariant culture settings.
See also: