Here is a simple script to demonstrate the syntax of what you want:
dtDate = Date()
iWeek = DatePart("ww", dtDate)
WScript.Echo iWeek
The important part is to take your date, and then use DatePart() on it using ww for work week. Today this script returned 1, since it is the first week of the year.
Does this help?
mmcdonal
|