parse_rfc3339_date

Function parse_rfc3339_date 

Source
pub fn parse_rfc3339_date(inp: &str) -> Result<LocalDate, Error<'_>>
Expand description

Parse a RFC3339 formatted date string.

ยงExample

let dt = parse_rfc3339_date("2023-09-17").unwrap();
assert_eq!(dt.year, Year::new(2023).unwrap());
assert_eq!(dt.month, Month::new(9).unwrap());
assert_eq!(dt.day, Day::new(17).unwrap());