The thing is that I need to get previous year of last month based on current day. For example:
- today is january, and current year is 2020 and the previous month the year was 2019 so it should return 2019.
- If I run it in february should return 2020.
I will really appreciate any suggestions.
Regards.