How do I add days to a Chrono UTC?

Just use Duration and appropriate operator:

use chrono::{Duration, Utc};

fn main() {
    let dt = Utc::now() + Duration::days(137);

    println!("today date + 137 days {}", dt);
}

Test on playground.

Leave a Comment