Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sunday Date...need the 1-52 week number

Status
Not open for further replies.

toolsofministry

Programmer
Sep 11, 2002
24
US
I have an application where the user clicks a Sunday on a calendar. Is there an automatic way that the corresponding week number for that Sunday can be displayed. In other words the fourth Sunday in January would be week 4 ETC.

Thanks and Merry Christmas if you are like me, a computer holic and cannot leave it off for one day.

If so, Happy New Year.
 

Check out the DatePart function with the "ww" for the interval with the firstdayofweek and firstweekofyear set to what you want.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top