Parse a toml Date with chrono in Rust
April 2026
Overview
This is how I'm parsing dates that come in from TOML with chrono for formatting.
Rust
Cargo.toml
[package]
name = "parse_toml_date"
version = "0.1.0"
edition = "2024"
[dependencies]
anyhow = "1.0.102"
chrono = "0.4.44"
toml = "1.1.2"src/main.rs
use Result;
use ;
use Table;
Output
Mon. April 6 - 2:23PM