Weekday function
Weekday( date,firstdayofweek )
Returns an integer containing the whole number for the weekday it is representing.
Example
Sub Main
   x = Weekday(#5/29/1959#)
   Print x
End Sub