DateSerial Function

Syntax:
DateSerial(Year, Month, Day)
Group: Time/Date
Description:
Return a date value.
Parameter Description

Year This numeric value is the year (0 to 9999). (0 to 99 are interpreted as 1900 to 1999.)
Month This numeric value is the month (1 to 12).
Day This numeric value is the day (1 to 31).
See Also: DateValue, TimeSerial, TimeValue.
Example:

Sub Main
Debug
.Print DateSerial(2000,7,4) '7/4/2000
End
Sub