www.icetips.com  Icetips Utilities Documentation 9/6/2010    

Date Class Overview

Previous  Top  Next  


The Date Class contains methods that deal with dates, day names, week numbers, month names etc.

 

ITDateClass              Class(ITWindowsClass),TYPE,Module('ITDateClass.clw'),Link('ITDateClass',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)

 

Months                     &IT_MonthQueue

Days                       &IT_WeekDayQueue

Q1                         Long,Dim(4)

Q2                         Long,Dim(4)

DE                         Long,Dim(4)

 

InitMonthNames             Procedure

InitDayNames               Procedure

SetMonthName               Procedure(Byte pMonth, String pMonthName, <String pShortName>)

GetMonthName               Procedure(Byte pMonth, Byte pLongName=True),String

SetDayName                 Procedure(Byte pDay, String pDayName, <String pShortName>)

GetDayName                 Procedure(Byte pDay, Byte pLongName=True),String

GetPreviousWeekDay         Procedure(Long pBaseDate, Byte pWeekDay, Byte pDayIfSame=True),LONG

GetNextWeekDay             Procedure(Long pBaseDate, Byte pWeekDay, Byte pDayIfSame=True),LONG

GetWeekNumber              Procedure(Date pDate),Byte  !! ISO 8601

 

GetThisWeek                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLastWeek                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetNextWeek                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetThisWorkWeek            Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLastWorkWeek            Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetNextWorkWeek            Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetThisMonth               Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLastMonth               Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetNextMonth               Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetThisQuarter             Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLastQuarter             Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetNextQuarter             Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetThisYear                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLastYear                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetNextYear                Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetLast12Months            Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetMonthToDate             Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetQuarterToDate           Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetYearToDate              Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetMonthFromDate           Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetQuarterFromDate         Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

GetYearFromDate            Procedure(Date pDate, *Date pFromDate, *Date pToDate),LONG,PROC

 

SetWeekStartDay            Procedure(Byte pStartDay)

GetWeekStartDay            Procedure(),Byte

GetWeekFirstDay            Procedure(Date pStartDate, Long pWeek),Long

 

DateDiff                   Procedure(Byte pDatePart=1, Date pStartDate, Date pEndDate),Long

DateAdd                    Procedure(Byte pDatePart=1, Long pNumber, Date pStartDate),Long

GetDate                    Procedure(Date pDate, Long pPeriods, Byte pDatePart=1),Long

 

Construct                  Procedure

Destruct                   Procedure

                        End

 



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