pub fn parse_date(string: &str) -> Option<DateTime<FixedOffset>>
Expand description
Parses a string using multiple formats
ยงExample
let datetime = parse_date("Mon, 2 Jan 2006 15:04:05 MST");
let expected = FixedOffset::west(7 * 3600).ymd(2006, 1, 2).and_hms(15, 4, 5);
assert_eq!(datetime, Some(expected));