|
Previous Top Next |
Prototype: | (Date pDate, *ANY pFromDate, *ANY pToDate),LONG,PROC |
pDate | Base date to calculate from. |
pFromDate | Start date of the period. |
pToDate | End date of the period. |
Returns | Number of days in the period |
This method returns the start and end dates for a period that started at the beginning of the current month specified by the pDate base date. pToDate will be equal to pDate and pFromDate will be equal to the 1st day of the month.
Example:
ITD ITDateClass
FD Date
TD Date
D Date
Ds Long
Code
D = Today()
Ds = ITD.GetMonthToDate(D,FD,TD)
ITD.ODS('GetMonthToDate Date: ' & Format(D,@d18) & ', From: ' & Format(Format(FD,@d18),@s30) & 'To: ' & Format(Format(TD,@d18),@s30) & 'Days: ' & Ds)
See also: