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

setting first week off year 1

Status
Not open for further replies.

cm1234

Technical User
Oct 18, 2002
41
DK
Hello out there

Im running CR 9,0 and my problem is that when making a report with week parameter in it starts with week 2 (03-01-05 to 09-01-05/ monday to Sunday) but its actually week 1 according to our calendar.
How to solve this????
Hope some one out here can help

Bet Regards
cm1234
 
On Crystal 8.5, Datepart has the format DatePart (intervalType, inputDateTime, firstDayOfWeek, firstWeekOfYear). Leave out the last two and you get the default values.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
The specific formula you would use is:

datepart("ww",{table.date},crMonday,crFirstFullWeek)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top