DateSerial Function
Syntax
DateSerial(Year, Month, Day)
Group
Description
Returns a Date value.
Parameters
| Parameters | Description |
|---|---|
| Year | The year (0 to 9999). (0 to 99 are interpreted by the operating system.) |
| Month | The month (1 to 12). |
| Day | The day (1 to 31). |
See also
DateValue, TimeSerial, TimeValue
Sub Main Debug.Print DateSerial(2000,7,4) '7/4/2000 End Sub