Edit

Share via


DateTime.ToText([Boolean]) Method

Version: Available or changed with runtime version 15.0.

Converts the value to a text. Equvilant to calling Format(value, 0, 0).

Syntax

Text :=   DateTime.ToText([Invariant: Boolean])

Parameters

DateTime
 Type: DateTime
An instance of the DateTime data type.

[Optional] Invariant
 Type: Boolean
If true, invariant formatting will be performed. Equvilant to calling Format(value, 0, 9).

Return Value

Text
 Type: Text
The text representation of the value.

DateTime data type
Getting started with AL
Developing extensions