Skip to navigation
Get rust date today and 2 days before
31.08.23
```rust use chrono::{Duration, Utc}; let now = Utc::now(); let yesterday = Utc::now() - Duration::days(2); let nows = format!("{}", now.format("%Y%m%d")); let yesterdays = format!("{}", yesterday.format("%Y%m%d")); ```
Reply
Anonymous
Information Epoch 1732410797
Design for the future, because it will be here sooner than you think.
Home
Notebook
Contact us