MS Access DateSerial() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MS Access DateSerial() Function

❮ MS Access Functions

Example

Return a date given a year, month, and day value:

SELECT DateSerial(2017, 4, 20);
Try it Yourself »

Definition and Usage

The DateSerial() function returns a date given a year, month, and day value.

Syntax

DateSerial(year, month, day)

Parameter Values

Parameter Description
year Required. A number between 100 and 9999 that represents the year value
month Required. A number between 1 and 12 that represents the month value
day Required. A number between 1 and 31 that represents the day value

Technical Details

Works in: Access 2016, Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000

More Examples

Example

Return a date given a year, month, and day value:

SELECT DateSerial(2017-10, 4-1, 20-5);
Try it Yourself »

❮ MS Access Functions