RosettaCodeData/Task/Date-format/Rust/date-format.rs
2024-10-16 18:07:41 -07:00

5 lines
141 B
Rust

fn main() {
let now = chrono::Utc::now();
println!("{}", now.format("%Y-%m-%d"));
println!("{}", now.format("%A, %B %d, %Y"));
}