How to make such a microflow that generates financial year according to contract start date and end date automatically?

I have created a project entity where project contract date both start and end present as an attributes also created another entity with financial year whose attributes are financial year and a default Start and end date . 
1 answers

you can use after commit entity event handler once you will create the contract one MF will runs and create and object at the financial year ,Now I am not sure that I am getting the financial year how it will be just a year or  form which date you will generate .

now if you want to have just the year from data time attribute use the bellow expression :

formatDateTime(date attribute,’YYYY’)