Skip to main content

parse_date

Function parse_date 

Source
pub fn parse_date(s: &str) -> Option<BaseDate>
Expand description

Parse a YYYY-MM-DD, YYYY-MM-DDTHH:mm[:ss], or YYYY-MM-DD HH:mm[:ss] string into a BaseDate. Lenient but strict enough not to swallow arbitrary hyphenated text. Returns None when the shape doesn’t match.