Javatpoint Logo
Javatpoint Logo

MySQL Date/Time weekday() Function

The weekday() is a MySQL date/time function. It is used to get the index for a date.

Syntax

Parameter:

Date_value : date for getting weekday

Returns:

This function returns the weekday index for a date.

Example 1

Output:


MySQL Datetime weekday() Function

Example 2

Output:


MySQL Datetime weekday() Function
Next TopicMySQL datetime




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA