Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim numDays, theDate
numDays = 7 * weekNumber
theDate = DateAdd("d",numDays,cDate("1/1/" & year(Today()))
'if we are not counting first half week:
theDate = DateAdd("d",8 - WeekDay(cDate("1/1/" & year(Today()))),theDate)
'if we are counting from beginning of week before jan 1
theDate = DateAdd("d",-1 * (WeekDay(cDate("1/1/" & Year(Today())) - 1),theDate)
<%
Dim weekNumber, yr
weekNumber = 3
yr = Year(Now())
Dim numDays, theDate, date1, date2
numDays = 7 * (weekNumber - 1)
theDate = DateAdd("d",numDays,cDate("1/1/" & yr))
'if we are not counting first half week:
date1 = DateAdd("d",8 - WeekDay(cDate("1/1/" & yr)),theDate)
'if we are counting from beginning of week before jan 1
date2 = DateAdd("d",-1 * (WeekDay(cDate("1/1/" & yr)) - 1),theDate)
Response.Write "The date of the first day of week " & weekNumber & " is: <Br>"
Response.Write "If not counting first half week of year: " & date1 & "<br>"
Response.Write "If counting first half week of year as full week: " & date2
%>