|
-
Jan 10th, 2001, 03:26 AM
#1
Thread Starter
Junior Member
Is there an "easy" way to consistantly determine the day of te week (Mon, Tue, Wed). There wouldn't happen to be a variable out there that carries it, like Date and Time do?
Thanks in advance
When life gives you lemons, spit in the bowl and pass it to the next guy!
-
Jan 10th, 2001, 03:59 AM
#2
transcendental analytic
WeekDay Function returns the weekday number 1-7 of any date variable/String expression that is a valid date.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 10th, 2001, 04:00 AM
#3
PowerPoster
Will this help you?
Code:
Select Case Weekday("10/01/2001")
Case vbSunday
MsgBox "Is Sunday"
Case vbMonday
MsgBox "Is Monday"
Case vbTuesday
MsgBox "Is Tuesday"
Case vbWednesday
MsgBox "Is Wednesday"
Case vbThursday
MsgBox "Is Thursday"
Case vbFriday
MsgBox "Is Friday"
Case vbSaturday
MsgBox "Is Saturday"
End Select
-
Jan 10th, 2001, 04:02 AM
#4
Thread Starter
Junior Member
Thanks, I was JUST gonna post that I found it in MSDN Library. Thank you for the speedy responce though.
When life gives you lemons, spit in the bowl and pass it to the next guy!
-
Jan 10th, 2001, 04:02 AM
#5
PowerPoster
Hi! Planewalker99, This will more better and efficient
Code:
WeekdayName(Weekday("10/01/2001", vbUseSystemDayOfWeek))
Cheers!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|