prevMonth property
DateTime
get
prevMonth
Returns DateTime
object of Previous month.
final checkDate =
DateTime.parse('2023-09-16 20:18:00.123456789z');
checkDate.prevMonth; // 16-08-2023
This will not consider time Parameters.
Implementation
DateTime get prevMonth => superSubtract(months: 1);