bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Weekday() Function

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind MS Access Weekday() Function?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ Weekday(#05/17/2017#);
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The Weekday() function returns the weekday number for a given date.
Definition and Usage
MS Access Weekday() Function

Example

SELECT Weekday(#05/17/2017#);

Definition and Usage

The Weekday() function returns the weekday number for a given date.

This function returns an integer between 1 and 7.

Syntax

Weekday(
date
,
firstdayofweek
)

Parameter Values

ParameterDescription
dateRequired. A valid date
firstdayofweekOptional. Specifies the first day of the week. Can be one of the following values: 0 = Use the NLS API setting 1 = Sunday (default) 2 = Monday 3 = Tuesday 4 = Wednesday 5 = Thursday 6 = Friday 7 = Saturday
  • 0 = Use the NLS API setting
  • 1 = Sunday (default)
  • 2 = Monday
  • 3 = Tuesday
  • 4 = Wednesday
  • 5 = Thursday
  • 6 = Friday
  • 7 = Saturday

Technical Details

Works in:From Access 2000

Previous

MS Access TimeValue() Function

Next

MS Access WeekdayName() Function