Login | |
|
 |
RE: Format Long Date - 7/15/2007 8:07:43 PM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
vbscript has a function called Weekday that should help.. it will return a the day as a number 1-7 (the default is sunday = 1) Example: dayNo = Weekday(Date)
|
|
| |
|
|
|
 |
RE: Format Long Date - 7/16/2007 12:49:53 AM
|
|
 |
|
| |
dm_4ever
Posts: 2726
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
quote:
ORIGINAL: ryanlcs Well..that's gd. but not really what I want. Actually what Parabellum suggested should get you on your way if you take a minute to see what he is suggesting. Select Case Weekday(Date) Case 1 WScript.Echo "Sunday" Case 2 WScript.Echo "Monday" End Select
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Format Long Date - 7/17/2007 12:30:09 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
My appologies, I shall try to be clearer next time, my meaning was infact as dm4-ever ellaberated, however ehvbs's solution is undoubtably better!
|
|
| |
|
|
|
|
|