It is quiet easy to determine the current week in a year as shown below :

SELECT DATEPART( wk, GETDATE())
However, to determine the current week in a month, use this query written by AMB

select datediff(week, convert(varchar(6), getdate(), 112+ '01'getdate()) + 1

posted on 2008-04-02 13:58  josephshi  阅读(234)  评论(0编辑  收藏  举报