pub fn parse_date_literal(s: &str) -> Option<i32>
Parse YYYY-MM-DD into a Date (days since Unix epoch). Returns None on shape / numeric failure; the engine surfaces that as a TypeMismatch with the original text included.
YYYY-MM-DD
Date
None
TypeMismatch