www.icetips.com  Icetips Utilities Documentation 12/16/2011    

Date Class: GetLastWorkWeek

Previous  Top  Next  


Prototype: (Date pDate, *ANY pFromDate, *ANY pToDate),LONG,PROC

 

pDateBase date to calculate from.
pFromDateStart date of the period.
pToDateEnd date of the period.

 

ReturnsNumber of days in the period

 

This method returns the start date and end date of the last/previous work week based on the pDate base date.  This is from Monday to Friday. 

 

Example:

ITD  ITDateClass

FD   Date

TD   Date

D    Date

Ds   Long

Code

D = Today()

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

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

 

 

 

See also:

GetThisWeek

GetLastWeek

GetNextWeek

GetThisWorkWeek

GetNextWorkWeek

GetThisMonth

GetLastMonth

GetNextMonth

GetThisQuarter

GetLastQuarter

GetNextQuarter

GetThisYear

GetLastYear

GetNextYear

GetLast12Months

GetMonthToDate

GetQuarterToDate

GetYearToDate

GetMonthFromDate

GetQuarterFromDate

GetYearFromDate



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