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

Week Number in Year

Status
Not open for further replies.

SApple

Programmer
Sep 28, 2000
20
0
0
US
I'm needing to write a formula that will take a given date of a data record and return what week number in the year it falls in. For example: 12/31/01 would be week #53.

Thanks for your help.
 
Do you want the calendar week or a literal week?

Example:

01/06/2002 falls in the second Calendar week

01/06/2002 falls in the first literal week (defined as 7 days/week).
 
Thanks! I want the calendar week number...
 
Try this. It might not work in every year.

Truncate (({date.field}- Date( Year({date.field}), 1, 1))/7) + 1 Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top