Constructor
DateTime.Constructor(CopyDate as Date)New in 2019r2
Sets the new DateTime object to have the same date information as the passed DateTime.
Sample Code
The following code sets the new DateTime to the previously created date and then displays it in a Label.
Var d1 As New DateTime(1956, 8, 13)
Var d2 As New DateTime(d1)
Label1.Value = d2.ToString(DateTime.FormatStyles.Short)