ASKER
ASKER
ASKER
startDate = "11/9/2017 8:00:00 AM"
endDate = dateAdd("yyyy",1,startDate)
currentDate = startDate
Do until cdate(currentDate) > cdate(endDate)
if Weekday(currentDate) <> 6 and Weekday(currentDate) <> 7 then
if hour(currentDate)>=8 AND (hour(currentDate)< 19 OR formatDateTime(currentDate,4) = "19:00") then
response.write FormatDateTime(currentDate,1)&" "&FormatDateTime(currentDate,3) &" | Weekday Number: " & Weekday(currentDate) & " | Weekday Name:"& weekdayname(Weekday(currentDate)) &"<br>"
response.flush
end if
end if
currentDate=dateAdd("n",15,currentDate)
Loop
Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.
TRUSTED BY
Open in new window
See dateAdd https://www.w3schools.com/asp/func_dateadd.asp