mysql - WEEKOFYEAR 3 weeks ago -
i looking able run simple query show week of year 3 weeks ago. have tried following without luck.
select weekofyear(curdate()) - interval 3 week
use mysql native function computing date differences:
select weekofyear(date_sub(curdate(), interval 3 week))
Comments
Post a Comment