AccpacFiscalCalendar.DatesFromPeriod2
Calculates the period start and end dates, given a period number, type, and length, and a base date.
Function DatesFromPeriod2(
Period As Integer,
PeriodType As tagPeriodType,
PeriodLength As Integer,
BaseDate As Date,
StartDate,
EndDate) As Boolean
Parameters
Period
[in] the period number
PeriodType
[in] the period type
PeriodLength
[in] the period length
BaseDate
[in] the starting date of the first period
StartDate
[out] returns the period's start date
EndDate
[out] returns the period's end date
Return Value
Returns whether the start and end dates were successfully determined.
Remarks
Script languages, such as Javascript, that do not accept "out" parameters, should use this variation of the DatesFromPeriod function.