Peter,
I think VFP already does that :)
? week(date(),2,2)
Calculates week number based on the first week containing at least 4 days in the current year, and Monday being the first day of the week.
>Does anybody out there have a ready made function to calculate the correct ISO week number from a given date?
>
>TIA
Steve Gibson