BSTCalH.WeekNumber PROCEDURE(LONG pDate,BYTE pSMon=0),LONG,VIRTUAL
WeekNumber method returns a LONG that is the ISO Week Number of the Passed Date. An Optional Flag is used if you are using a calendar where the Week Starts on Monday. Then the Passed SMon Byte should be set to 1.
The WeekNumber method auto-corrects according to ISO standards and Jan 1 will correctly return Week 52 or 53 of the previous year.
Standard Usage
Week Starts On Sunday
BHT:WkOfYr = BSTCalH.WeekNumber(BHT:Date)
or
BHT:WkOfYr = BSTCalH.WeekNumber(BHT:Date,0)
Week Starts on Monday
BHT:WkOfYr = BSTCalH.WeekNumber(BHT:Date,1)