THE WORLD'S LARGEST WEB DEVELOPER SITE

MS Access Year() Function

❮ MS Access Functions

Example

Return the year for a specified date:

SELECT Year(#05/17/2017#);
Try it Yourself »

Definition and Usage

The Year() function returns the year (four digits) for a date.

Syntax

Year(date)

Parameter Values

Parameter Description
date Required. A valid date

Technical Details

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

More Examples

Example

Return the year for today's date:

SELECT Year(Date());
Try it Yourself »

Example

Return the year for the "BirthDay" column in "Employees":

SELECT Year(BirthDate) FROM Employees;
Try it Yourself »

❮ MS Access Functions