' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
s = ""
for y = 2000 to 2020
   for d = 1 to 7
      dt = CDate(d & "-Jan-" & y)
      if DatePart("w", dt) = 5 then
         s = s & WeekDayName(DatePart("w", dt)) & " " & dt & " = " & DatePart("ww", dt , vbMonday, vbFirstFourDays) & vbCrLf
      end if
   Next
Next
WScript.Echo s
