Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql last friday of current month

SELECT LAST_DAY(NOW()) - ((7 + WEEKDAY(LAST_DAY(NOW())) - 4) % 7);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #friday #current #month
ADD COMMENT
Topic
Name
4+6 =