WeekDayDate - Returns the day of the week as a number using the date given in the argument as the basis.

This undocumented function is similar to WeekDay, except that it uses an argument specifying the basis date.

Note: Don't use Date$() as the argument to WeekDayDate(). It can cause WinTask to crash.

<font class="small">Code:</font><hr /><pre>'
' example - display the day number
' of the date that was two days ago
MsgBox(var)</pre><hr />