Dertermine the Monday of the Third Week

  • What method would you use to determine the the which date is the Third Monday of each Month?

  • something like

    declare @d datetime

    select @d = '20030101'

    while @d < '20040101'

    begin

    select dateadd(ww,2,dateadd(dd,(9-datepart(dw,@d))%7, @d))

    select @d = dateadd(mm,1,@d)

    end

    Cursors never.

    DTS - only when needed and never to control.


    Cursors never.
    DTS - only when needed and never to control.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply