ICultureInfo.FormatDate

Syntax

FormatDate(Value: DateTime): String;

Parameters

Value. Value converted into string type.

Description

The FormatDate method converts the specified date value into string type according to regional standard settings.

Example

Function GetInvariantDate(Value: DateTime): String;
Var
    CI: ICultureInfo;
Begin
    CI := CultureInfo.Invariant;
    Return CI.FormatDate(Value);
End Function GetInvariantDate;

The specified function can be used to convert the passed dates into the string type according to the invariant culture settings.

See also:

ICultureInfo