Day of Week Function
Category:
Dates and MathType:
SnippetsDifficulty:
BeginningAuthor:
neophileVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
This is exactly like VB's Weekday function, except it's return range of 0 (Sunday) - 6 (Saturday), instead of 1-7.
This code can even be adapted to a calculator with programming capability. In fact, I first wrote this years ago on a TI-85 :)
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: