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)

From Xojo Documentation

Constructor
DateTime.Constructor(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, nanosecond As Integer, timeZone As TimeZone)

New in 2019r2

Creates a new date object based upon the parameters passed.

Sample Code

This example creates a new DateTime of April 1st, 1996:

Var d As New DateTime(1996, 4, 1)