Skip to content
Advertisement

Get start and end date of the financial year in Carbon

I need to dynamically echo the start and end dates of the current Australian financial year (July 1st to June 30 of the year).

I am using Carbon and Laravel to get the dates of the current financial year.

I assume the code will look something like this semi-pseudocode

JavaScript

As you can see my math is not quite right and it seems im missing a step or two to output the right dates. Or perhaps im missing something simple?

Advertisement

Answer

Try this :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement