stickleprojects Level: Moderator

 Registered: 09-09-2002 Posts: 1000
|
Re: now/date code question
Hi,
yep, here's some examples:
dim d as date
d = now
if isweekday(d) = vbThursday then
msgbox "Thursday!"
end if
if isweekday(cdate("1 jan 2008")) = vbThursday then
msgbox "Thursday too!"
end if
if isdate(me.textbox1.text) then
if isweekday(cdate(me.textbox1.text)) = vbThursday then
msgbox "Thursday too (but the user keyed it into a textbox!"
end if
end if
|
Hope this helps
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
|