date a week

  • need date for weeks, beginning the week and end of week format. ie for week 1 week 2 week ... 52. how do I?

  • amadeu_j (7/29/2014)


    need date for weeks, beginning the week and end of week format. ie for week 1 week 2 week ... 52. how do I?

    Could you give an example of what you're trying to do? I think you can get what you want by using either a Calendar Table (pretty sure Jeff Moden wrote an article about it), or Lynn Pettis' calendar functions.

  • amadeu_j (7/29/2014)


    need date for weeks, beginning the week and end of week format. ie for week 1 week 2 week ... 52. how do I?

    What day of the week do your weeks start on? Also, what defines the first and last week of the year? The first week of the year starts on any given day of the week an average of 1 out of 7 times.

    As a bit of a sidebar, you can save a whole lot of headaches if you adopt the principle of ISO Weeks which also takes care of the first and last weeks of the year as well as the differences between 52 and 53 week years.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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