Languages

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

0 points
Asked by:
Dirask Community
6240

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

1 answer
0 points
Answered by:
Dirask Community
6240

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