System.DT2Date(DateTime) Method

Version: Available or changed with runtime version 1.0.

Gets the date part of a DateTime object.

Syntax

Date :=   System.DT2Date(Datetime: DateTime)

Note

This method can be invoked without specifying the data type name.

Parameters

Datetime
 Type: DateTime
The DateTime of which to return the date part.

Return Value

Date
 Type: Date

Remarks

If Datetime is undefined, then this method returns an undefined date.

System Data Type
Get Started with AL
Developing Extensions