Day of the Week

S

scott_hanebutt

How do I determine the day of the week from a date? I wanting to write code
that will check a date field (which allways contains today's date) and bassed
on what day of the week it is (Monday, Tuesday...) I will have something
happen.

Is there some other simpler way to tell what day today is?

Thanks,
Scott Hanebutt
 
D

Dale Howard [MVP]

Scott --

Have you tried the Weekday(date) function? The function returns a whole
number representing the day of the week, where Sunday =1. Hope this helps.
 
S

scott_hanebutt

Thanks, just what I needed.

Dale Howard said:
Scott --

Have you tried the Weekday(date) function? The function returns a whole
number representing the day of the week, where Sunday =1. Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top