Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
MySQL Tutorial
Introduction
Select Query
Database
Table
Table Join
Subquery
Insert Update Delete
Logic Operator
View
Data Types
Procedure Function
Cursor
Trigger
Date Time Functions
Comparison Functions Operators
Aggregate Functions
Cast Functions Operators
Control Flow Functions
Encryption Compression Functions
Information Functions
Math Numeric Functions
Miscellaneous Functions
String Functions
Regular Expressions
Data Dictionary
MySQL Utilities
Privilege
WEEKDAY « Date Time Functions « MySQL Tutorial
MySQL Tutorial
Date Time Functions
WEEKDAY
14.56.WEEKDAY
14.56.1.
WEEKDAY(date) returns the weekday index for date (0 = Monday, 1 = Tuesday, ... 6 = Sunday).
14.56.2.
SELECT WEEKDAY('1997-11-05');
14.56.3.
WEEKDAY(date) different and returns the weekday index for the given date(0=Monday, 1=Tuesday, 2=Wednesday, and so on).