[][src]Function date_calculations::previous_month

pub fn previous_month(date: &NaiveDate) -> Option<NaiveDate>

Returns the first day of the previous month.

If the current month is January, this will shift to the previous year.