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

Date Class: GetNextQuarter

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 first and last date in the next quarter based on the pDate base date.  If the current quarter is the last quarter, this method will return the dates for January 1 and March 31, the year after.

 

Example:

ITD  ITDateClass

FD   Date

TD   Date

D    Date

Ds   Long

Code

D = Today()

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

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

 

 

 

See also:

GetThisWeek

GetLastWeek

GetNextWeek

GetThisWorkWeek

GetLastWorkWeek

GetNextWorkWeek

GetThisMonth

GetLastMonth

GetNextMonth

GetThisQuarter

GetLastQuarter

GetThisYear

GetLastYear

GetNextYear

GetLast12Months

GetMonthToDate

GetQuarterToDate

GetYearToDate

GetMonthFromDate

GetQuarterFromDate

GetYearFromDate

 



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