RosettaCodeData/Task/Date-format/Rust/date-format.rust

6 lines
141 B
Plaintext

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