Day of the week?

pdbowling

Registered User.
Local time
Today, 21:38
Joined
Feb 14, 2003
Messages
179
Hi all.
If you have a date cast as a long (43112 for example) and you would like to get the day of the week out (Monday, Tuesday, etc), is there a function for that or do I need to write my own modulus function?
Thanks all.
PB
 
You can use cdate to convert the long to a date, then use the regular function....

Regards
 
namliam said:
You can use cdate to convert the long to a date, then use the regular function....

Regards
Thanks, but I know how to cast dates to anything except Monday, Tuesday, Wednesday, Thursday, etc. The 'regular' function.. I don't know what that is. Got a hint for me?
PB
 
OK, call me stupid.

Pat Hartman said:
Use the Format() function.

I've used format to format(myDate,"mm/dd/yyyy")
What's the syntax for 'Day of the Week'?
PB
 
Format(myDate,"dddd")
 
Format will do, you can also use weekday...

Good luck
 
Too simple Rich, there must be a more difficult way to do it ! :D

Dave
 

Users who are viewing this thread

Back
Top Bottom