Date.Constructor(CopyDate as Date)
From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use DateTime.Constructor(CopyDate as DateTime) as a replacement.
Sets the new date object to have the same date information as the passed date.
The following code sets the new Date to the previously created date and then displays it in a Label.