GetPeriodDates

ACCPAC Common Controls

AccpacFiscalCalendar.GetPeriodDates

Retrieves the start and end dates of the given fiscal year and period.

Function GetPeriodDates(
  Year As String,
  Period As Integer,
  [StartDate As Date],
  [EndDate As Date],
  [PeriodOpen As Boolean]) As Boolean

Parameters

Year

[in] the fiscal year

Period

[in] the fiscal period

StartDate

[out, optional] returns the fiscal period start date

EndDate

[out, optional] returns the fiscal period end date

PeriodOpen

[out, optional] returns whether the period is open (not locked)

Return Value

Returns whether the specified fiscal year and period are defined in the fiscal calendar.