72
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:
Example 2
Output:
Next TopicMySQL date/time