Question : VBScript/Classic ASP: Function to Return Weekend Days?

Hello,
As the title suggests. Does anyone know if there is a VBScript function that can be used to check if a date is a weekend day/date?
I presume it would require dates read from a gregorian calendar somehow?

Cheers.

Answer : VBScript/Classic ASP: Function to Return Weekend Days?

Typo
use the weekday function to get the day

if Weekday(YourDate) = 1 OR Weekday(YourDate) = 7 Then
'It is a weekend
End If
Random Solutions  
 
programming4us programming4us