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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date to Day of Week

Status
Not open for further replies.

futebol3

Programmer
Sep 27, 2006
4
US
Does anyone know how to take a given date (eg. 12/12/2006) and convert this to a day of week (eg. Tuesday)?

I havent seen this in any previous posts and any thoughts would be greatly appreciated.

Thanks.
 
Code:
WeekdayName(Weekday([my_date]),False)

Basically, you need to first return weekday number (weekday(my_date)), then get WeekdayName from that.

Hope this helps.

Alex

Ignorance of certain subjects is a great part of wisdom
 


Hi,
Code:
MsgBox Format([MyDate], "ddd")  'DOW abbreviation
MsgBox Format([MyDate], "dddd")  'DOW FULL


Skip,

[glasses] [red][/red]
[tongue]
 
Thanks guys thats exactly what I needed. I appreciate the help.
 
Skip - you are the man when it comes to dates. I did not know you could do that...

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top