Date.Constructor(CopyDate as Date)

From Xojo Documentation

Revision as of 19:07, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Date.Constructor(CopyDate as Date)

Sets the new date object to have the same date information as the passed date.

Sample Code

The following code sets the new Date to the previously created date and then displays it in a Label.

Var d1 As New Date

d1.Day = 13
d1.Month = 8
d1.Year = 1956

Var d2 As New Date(d1)
Label1.Value = d2.ShortDate