Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting day of week from Date ()

Status
Not open for further replies.

InkyRich

Technical User
Aug 2, 2006
126
GB
Hello,
Can anybody tell me how I can get the system DAY of the week from the Date() or Day() or Now() function please.
Regards
Inky

A fool and his money are soon parted - so you might as well send it to me!
 
You can use a combination of the Weekday() and WeekDayName() functions. Something along the lines of:
Code:
MsgBox WeekdayName(Weekday(Date, vbUseSystem))
Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Thanks Harley, problem solved.
Very much appreciated

[medal]

A fool and his money are soon parted - so you might as well send it to me!
 
You're welcome, glad I could help [smile]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top