Version: Available or changed with runtime version 15.0.
Converts the value to a text. Equivalent 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. Equivalent to calling Format(value, 0, 9).
Return Value
Text
 Type: Text
The text representation of the value.
Related information
DateTime data type
Getting started with AL
Developing extensions