Dec 12, 2006 #1 futebol3 Programmer Joined Sep 27, 2006 Messages 4 Location 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.
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.
Dec 12, 2006 #2 AlexCuse Programmer Joined Apr 13, 2006 Messages 5,416 Location US 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 Upvote 0 Downvote
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
Dec 12, 2006 #3 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US Hi, Code: MsgBox Format([MyDate], "ddd") 'DOW abbreviation MsgBox Format([MyDate], "dddd") 'DOW FULL Skip, [red][/red] Upvote 0 Downvote
Hi, Code: MsgBox Format([MyDate], "ddd") 'DOW abbreviation MsgBox Format([MyDate], "dddd") 'DOW FULL Skip, [red][/red]
Dec 12, 2006 Thread starter #4 futebol3 Programmer Joined Sep 27, 2006 Messages 4 Location US Thanks guys thats exactly what I needed. I appreciate the help. Upvote 0 Downvote
Dec 12, 2006 #5 AlexCuse Programmer Joined Apr 13, 2006 Messages 5,416 Location US 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 Upvote 0 Downvote
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