So I have these drop downs that I need to supply on (Month and Year).
My main target is to get previous month’s value and the year it was. I figured out the month but the year is my problem. If I try to extract December 2019, I could get December with this code (Datetime.Now.AddMonths(-1)).ToString(“MMMM”) but the year 2019 is my problem. My current code for Year is now.year.ToString. So the bot will return December 2020 and not December 2019.