previous_month

Function previous_month 

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

Returns the first day of the previous month.

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