Javatpoint Logo
Javatpoint Logo

MySQL DAYOFWEEK() Function

The dayofweek() is a MySQL date/time function. It is used to get the day of the week in numeric.

Syntax

Parameter:

Date: date value for getting a day of the week.

Returns:

This function returns the weekday index for a date value.

Example 1

Output:


MySQL DAYOFWEEK() Function

Example 2

Output:


MySQL DAYOFWEEK() Function
Next TopicMySQL date/time




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA