Languages

MySQL - what is the difference between WEEKDAY() and DAYOFWEEK() function?

0 points
Asked by:
Emrys-Li
380

What is the difference between WEEKDAY() and DAYOFWEEK() in MySQL?

1 answer
0 points
Answered by:
Emrys-Li
380

I found the solution:

  • The WEEKDAY() function counts days of the week from Monday and starts from 0.
  • The DAYOFWEEK() function counts days of the week from Sunday and starts from 1.

For better understanding, I also made an article:

0 comments Add comment
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join