It's All Writing.

Writing makes you happy.

How to get Fiscal Year's start and end date at Apex

Environment

  • Apex

Code

gist.github.com

You can also use other literals (e.g. NEXT_FISCAL_YEAR, THIS_FISCAL_QUARTER and many ) to get each duration's start and end date with same method.

Reference

developer.salesforce.com