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

6 lines
141 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
fn main() {
let now = chrono::Utc::now();
println!("{}", now.format("%Y-%m-%d"));
println!("{}", now.format("%A, %B %d, %Y"));
2016-12-05 22:15:40 +01:00
}