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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Week Of Year 2

Status
Not open for further replies.

NavAmmo

Technical User
Nov 18, 2004
9
US
Is there a weekofyear type function for determining what week number (1-52) a given date occurs in? If not, does anyone know of an acceptable alternative to get the same data?
 
A starting point:
MsgBox Format(Date(), "ww", , 2)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Or use the DatePart() function, which has similar parameters but returns a number.

Note that you can specify what day of the week is the first day of a week, as well as how the "first week" of the year is defined.
 
Thanks a million PHV! So great to have people with such expertise who don't mind answering the "dumb" questions and pointing newbies like me in the right direction! I LOVE THIS FORUM!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top