Check out example codes for "mysql get day of week". It will help you in understanding the concepts better.

Code Example 1

DAYOFWEEK();//(1 for Sunday,2 for Monday …… 7 for Saturday )

Code Example 2

SELECT WEEKDAY(date);

Learn ReactJs, React Native from akashmittal.com