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
This item was deprecated in version 2019r2. Please use DateTime.Constructor(Year as Integer, Month as Integer, Day as Integer, hour as Integer = 0, minute as Integer = 0, second as Integer = 0, nanosecond as Integer = 0, timeZone as TimeZone = Nil) as a replacement. |
Constructor
Date.Constructor(Year as Integer, Month as Integer, Day as Integer, Hour as Integer, Minute as Integer, Second as Integer)
New in 2009r2
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.
DateTime.Constructor(Year_as_Integer,_Month_as_Integer_%3D_1,_Day_as_Integer_%3D_1,_hour_as_Integer_%3D_0,_minute_as_Integer_%3D_0,_second_as_Integer_%3D_0,_nanosecond_as_Integer_%3D_0,_timeZone_as_TimeZone_%3D_Ni