What is the day today - Get using VBA??

CharlesWhiteman

Registered User.
Local time
Today, 07:20
Joined
Feb 26, 2007
Messages
421
Does anyone know how to find out what day of the week it is using VBA?

Thanks
 
weekday(date) returns a number in the range 1 to 7

constants for these days are

vbsunday, vbmonday etc

does that help?
 
Hi, I am not sure if that helps.

Basically I am developing a query which (based on an if) will only run on a specific day of the week.

So, I need to identify in a query what day it is "today"
 
Today:Format(Date(),"dddd") = Saturday
 

Users who are viewing this thread

Back
Top Bottom