GetFloatDay
Previous  Top  Next

BSTCalH.GetFloatDay PROCEDURE(BYTE pWkNo, BYTE pDoW,BYTE pMo, SHORT pYr),LONG,VIRTUAL

GetFloatDay method returns a date(LONG) that is the calculated date for the passed Week of Month(WkNo), Day of Week(DOW), Month of Year(Mo), and Year(Yr).

The DOW passed is the standard %7 of 0 = Sunday, etc. ,FROM('Sun|#0|Mon|#1|Tue|#2|Wed|#3|Thu|#4|Fri|#5|Sat|#6')

Note: If you want the "Day of Week" from the "last Week of the Month", use "Week of Month" = 5, and it will autocorrect to 4 as necessary.

Standard Usage

BHT:DateRet = BSTCalH.GetFloatDay(BHT:WkWanted,BHT:DayOfWeek,BHT:MoWanted,BHT:Year)