Skip to main content

parse_date_literal

Function parse_date_literal 

Source
pub fn parse_date_literal(s: &str) -> Option<i32>
Expand description

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.