Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Related information
DateTime data type
Getting started with AL
Developing extensions