Check out example codes for "extract weekday from date in sql". It will help you in understanding the concepts better.

Code Example 1

SELECT WEEKDAY(date);

Learn ReactJs, React Native from akashmittal.com