fiscalYearEnd()
Returns the last date of the fiscal year for a given date, based on your organization's configured fiscal year start month.
If no date is provided, the current context date is used.
Syntax
fiscalYearEnd(date)
Parameters
Parameter | Type | Description |
|---|---|---|
date | DateDate | Optional. The date to calculate the fiscal year end from. Defaults to today. |
Return Type
DateDate
The last day of the fiscal year that contains the given date.
Examples
For an organization with a default fiscal year (starts in January):
fiscalYearEnd('2025-05-12')
- Returns 2025-12-31 because May 12, 2025 falls within the fiscal year ending December 31, 2025.
For an organization with a fiscal year starting in February:
fiscalYearEnd('2025-03-15')
- Returns 2026-01-31 because March 2025 falls within the fiscal year ending January 31, 2026.
fiscalYearEnd('2025-01-15')
- Returns 2025-01-31 because January 2025 falls within the fiscal year ending January 31, 2025.
Related Carrot
- fiscalYearStart()fiscalYearStart() - Returns the start date of the fiscal year
- fiscalYear()fiscalYear() - Returns the fiscal year number
- fiscalQuarterEnd()fiscalQuarterEnd() - Returns the end date of the fiscal quarter
