RE: DayOfWeek - Determining in ActiveX Script -
05-24-2004
, 09:42 PM
Hi,
If you want the script to check for the dayofweek for the date that it is
executed on, then
use the datepart function
if datepart(w,now())=vbMonday then
end if
If you want the script to check it against a global variable then
Declare the variable of type Integer
and then compare it
for eg
DayOfWeek int
if Dayofweek = vbMonday then
end if
vbMonday is a constant that is used with VBScripting
for more information on datepart function, visit
http://msdn.microsoft.com/library/de...us/script56/ht
ml/vsfctdatepart.asp?frame=true
HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights. |