Home » MySQL DAYOFWEEK() Function

MySQL DAYOFWEEK() Function

by Online Tutorials Library

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

You may also like