-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plus_months function of the DateLike trait #474
Comments
Unfortunately not, the closest you can get is adding days or durations. |
+1 on this and probably related to #52 Would be nice to be able to get last month |
use chrono::{ Datelike, NaiveDate, ParseResult};
} fn year_add(date:&NaiveDate,i:i32)->String {
}
} fn month_add(date:&NaiveDate,i:i32)->String { } |
@doivosevic and @dmitriibundin - I know it's been a while, but does #731 solve your use case? |
Added in #731. |
Is there a way to add some number of months to
NaiveDate
? I'm looking for something with the following behaviorIs it currently implemented somewhere?
The text was updated successfully, but these errors were encountered: