I need to get previous month from today's date

Hi @sruthesanju
Please try this function to get the date.

get today’s date

today = DateTime.Now

get the previous month from today’s date

prevMonth = today.AddMonths(-1)