February 14, 2009

WinTask - WeekDayDate (undocumented function)

'
' WeekDayDate - Returns the day of the week as a number
' using the date given in the argument as the basis.
' (undocumented)
'
' Author: Joe Strazzere
'
' see: WeekDay
'
' Note: Don't use Date$() as the argument to WeekDayDate()
' It can cause WinTask to crash
'

'
' example - display the day number
' of the date that was two days ago
'
var$=DateToDate$("d",-2,Date$())
var=WeekDayDate(var$)
MsgBox(var)