I have a DateTimePicker in which I allow user to select month previous to the current year.
DateTimePicker
The problem is, that if the date is 1st January, it can\'t calc
If you, like Adil H. Raza, don't like to have negative numbers in your code, you could also make an extension method:
public static DateTime SubtractMonths(this DateTime dt, int months) => dt.AddMonths(-months);
And use it like
var lastmonth = DateTime.Today.SubtractMonths(1);