MS Access Format() Function
Example
Format the "BirthDate" column to a long date:
SELECT Format(BirthDate, "Long Date") AS FormattedBirthDate
FROM Employees;
Try it Yourself »
Definition and Usage
The Format() function formats a date value with the specified format.
Syntax
Format(value, format, firstdayofweek, firstweekofyear)
Parameter Values
| Parameter | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| value | Required. The date value to format | ||||||||||||||||
| format | Optional. The format to use.
|
||||||||||||||||
| firstdayofweek | Optional. Specifies the first day of the week.
Can be one of the following values:
|
||||||||||||||||
| firstdayofyear | Optional. Specifies the first week of the year. Can be one of the following values:
|
Technical Details
| Works in: | From Access 2000 |
|---|