The year is divided into 12 months. We can break down a month in four weeks.
In MySQL, how to return the week of the month? (Example: first week: 2 entries, second w
Week of month (where the starting incomplete week is counted as a whole)
select ceiling((day(now()) - (6 - weekday(date_format(now(),'%Y-%m-01'))))/7) + case when 6 - weekday(date_format(now(),'%Y-%m-01'))> 0 then 1 else 0 end week_of_month;