Check out example codes for "mysql last friday of current month". It will help you in understanding the concepts better.

Code Example 1

SELECT LAST_DAY(NOW()) - ((7 + WEEKDAY(LAST_DAY(NOW())) - 4) % 7);

Learn ReactJs, React Native from akashmittal.com