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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -