DateSerial (function)

<< Click to Display Table of Contents >>

DateSerial (function)

DateSerial(Year, Month, Day)

Returns a Variant variable (type: date) corresponding to the parameters Year, Month and Day.

See also: DateValue, Day, Month, Now, Time, TimeSerial, TimeValue, Weekday, Year

Example:

Sub Main

 Print DateSerial(2020,09,25)   ' returns 2020-09-25

End Sub