Just substract a month by ‘adding` -1:
var lastmonth = DateTime.Today.AddMonths(-1);
See the MSDN documentation on DateTime.AddMonths
.
Just substract a month by ‘adding` -1:
var lastmonth = DateTime.Today.AddMonths(-1);
See the MSDN documentation on DateTime.AddMonths
.