GetPeriod

ACCPAC Common Controls

AccpacFiscalCalendar.GetPeriod

Retrieves the fiscal year and period to which a given date belongs.

Function GetPeriod(
  Date As Date,
  [Period As Integer],
  [Year As String],
  [PeriodOpen As Boolean]) As Boolean

Parameters

Date

[in] the date

Period

[out, optional] returns the fiscal period that includes the specified date

Year

[out, optional] returns the fiscal year that includes the specified date

PeriodOpen

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

Return Value

Returns whether the specified date falls in a fiscal period defined in the fiscal calendar.