ICultureInfo.FormatShortDate

Syntax

FormatShortDate(Value: DateTime): String;

Parameters

Value. Value converted into string type.

Description

The FormatShortDate method converts the specified date value into string type in short format and according to regional standard settings.

Comments

Short date format can be obtained in the ShortDateFormat property.

Example

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:

ICultureInfo