MS Access DateSerial() Function
Example
Return a date from it's parts:
SELECT DateSerial(2017, 4, 20);
Try it Yourself »
Definition and Usage
The DateSerial() function returns a date from the specified parts (year, month, and day values).
Syntax
DateSerial(year, month, day)
Parameter Values
Parameter |
Description |
year |
Required. Specifies a year (4 digits) |
month |
Required. Specifies a month (from 1 to 12) |
day |
Required. Specifies a day (from 1 to 31) |
Technical Details
Works in: |
From Access 2000 |
More Examples
Example
Return a date from it's parts:
SELECT DateSerial(2017-10, 4-1, 20-5);
Try it Yourself »