DateTimeFiscalExtensions extension

Fiscal year start/end (configurable start month).

on

Methods

endOfFiscalYear({int startMonth = 1}) DateTime

Available on DateTime, provided by the DateTimeFiscalExtensions extension

End of fiscal year (last day of (startMonth-1) at 23:59:59.999999).
fiscalYear({int startMonth = 1}) int

Available on DateTime, provided by the DateTimeFiscalExtensions extension

Fiscal year when year starts in startMonth (1–12). E.g. startMonth 4 → FY runs Apr–Mar.
startOfFiscalYear({int startMonth = 1}) DateTime

Available on DateTime, provided by the DateTimeFiscalExtensions extension

Start of fiscal year (first day of startMonth at 00:00:00).