All:

Is there any way to accurately calculate the week number for any given year?

For example, what is the week number that July 27, 2007 is in?

Can it be calculated for future dates as well?

If the year starts on a Saturday or Sunday is that considered week 1?

Do all years have 52 week numbers?

I know nothing about this, and am curious. I also want to write a winbatch program that calculates this (if possible)

Any help is greatly appreciated

Curious in Georgetown