DT2DATE Function (DateTime)
Gets the date part of a DateTime object.
Date := DT2DATE(Datetime)
Datetime
Type: DateTime
The DateTime of which to return the date part.
Type: Date
The date part of the DateTime object.
If Datetime is undefined, then this function returns an undefined date.