FormatShortDate(Value: DateTime): String;
Value. Value converted into string type.
The FormatShortDate method converts the specified date value into string type in short format and according to regional standard settings.
Short date format can be obtained in the ShortDateFormat property.
Function GetInvariantShortDate(Value: DateTime): String;
Var
CI: ICultureInfo;
Begin
CI := CultureInfo.Invariant;
Return CI.FormatShortDate(Value);
End Function GetInvariantShortDate;
The specified function can be used to convert the passed dates to string type in short format and according to invariant culture settings.
See also: