Hi,
I'm having a problem getting the correct week number for the date 31st December 2001 in Crystal Reports 8.0. Using Monday as first day of the week and the week containing Jan 1st as first week of the year, my formula:
DatePart("ww", #December 31, 2001#, crMonday, crFirstJan1)
returns 53.00 when I expected 1.00
Can anyone out there explain what is going wrong here, or suggest another method?
Cheers.
I'm having a problem getting the correct week number for the date 31st December 2001 in Crystal Reports 8.0. Using Monday as first day of the week and the week containing Jan 1st as first week of the year, my formula:
DatePart("ww", #December 31, 2001#, crMonday, crFirstJan1)
returns 53.00 when I expected 1.00
Can anyone out there explain what is going wrong here, or suggest another method?
Cheers.