Hi all, We have a problem with the finance section for our app, when creating a transaction object, the app calculates which financial year the transaction belongs in. Out financial year runs from April-March. It looks at the user inputted date of the transaction and outputs through a parse integer function the year as ‘YYYY’ You can see the “StartofFY” variable is created, however it is outputting 2020, rather than 2021. It should take the transaction date, subtract a year and then output. The transaction date is 2022, subtract one year is 2021, yet it is outputting 2020. Can anyone help?
‘YYYY’ is the week year, try changing over to ‘yyyy’ as this is probably what you really need.