ICultureInfo.FormatDateTime

Syntax

FormatDateTime(Value: DateTime): String;

Parameters

Value. Value converted into string type.

Description

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

Example

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:

ICultureInfo