Rust Program to Parse Only Date From a String

Rust program to parse only date from a string // Rust program to parse only date from string use chrono::{DateTime, NaiveDate, NaiveDateTime, NaiveTime}; use chrono::format::ParseError; fn main() -> Result<(), ParseError>…

0 Comments

Rust Program to Create a Directory

Rust program to create a directory // Rust program to create a directory use std::fs; fn main() -> std::io::Result<()> { fs::create_dir("MyDir")?; println!("MyDir directory created successfully\n"); Ok(()) } Output $ rustc…

0 Comments