Date.Constructor(Year as Integer, Month as Integer = 1, Day as Integer = 1, hour as Integer = 0, minute as Integer = 0, second as Integer = 0)

From Xojo Documentation

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


Date.Constructor(Year as Integer, Month as Integer, Day as Integer, Hour as Integer, Minute as Integer, Second as Integer)

New in 2009r2

Introduced 2009r2

Sets the new date object to the passed Year, Month, and Day, Hour, Minute. and Second.

Sample Code

This code creates a Date object and sets it to 15 April, 2017.

Dim d As New Date(2017, 4, 15)