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 1730248192
Files are bags of bytes.
Home
Notebook
Contact us