Previous month issue

How can i write the previous month in this format( if it is June month the bot should type as 05)

Now.AddMonths(-1).ToString("MM")

Thanks for ur help

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.