www.icetips.com  Icetips Utilities Documentation 11/14/2010    

Date Class: SetWeekStartDay

Previous  Top  Next  


Prototype: (Byte pStartDay)

 

pStartDayDay value in the range of IT_Sunday to IT_Saturday (0 - 6) indicating what day of the week is considered to the week's start date. 

 

This method is used to set the week start day to any day in the IT_Sunday - IT_Saturday range, indicating the day that the week starts on.  This method is called from the Construct method to set the WeekStartDay property to IT_Monday according to ISO 8601.

 

Example:

ITD  ITDateClass

FD   Date

TD   Date

D    Date

Ds   Long

Code

D = Today()

ITD.SetWeekStartDate(IT_Sunday)

Ds = ITD.GetThisWeek(D,FD,TD)

ITD.ODS('GetThisWeek          Date: ' & Format(D,@d18) & ', From: ' & Format(Format(FD,@d18),@s30) & 'To: ' & Format(Format(TD,@d18),@s30) & 'Days: ' & Ds)

 

 

See also:

GetWeekStartDay

WeekStartDay

 



Direct link to this page: http://www.icetips.com/manuals/utilities/setweekstartday_dateclass.htm