How to get Current year and Previous month

Hi,
I need to get the current year and previous month in the current year
Ex:- today is 2020-Feb-20
I need get 2020-Jan-20

Any suggestion

Date.Now.Tostring(“yyyy”)+"-"+Date.Now.AddMonth(-1).Tostring(“MMM-yy”)

4 Likes