ICultureInfo.FormatTime

Syntax

FormatTime(Value: DateTime): String;

Parameters

Value. Value converted into string type.

Description

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

Example

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

The specified function can be used to convert sending time values into string type according to invariant culture settings.

See also:

ICultureInfo