Q&A for professional and enthusiast programmers
DECLARE @ CHAR(4)=2000 PRINT DATEADD(d,59,DATEDIFF(d,1,DATEADD(m,9,@))/7*7)