Skip to main content

parse_date

Function parse_date 

Source
pub fn parse_date(x: &Value) -> Option<DateValue>
Expand description

Parse an ISO-8601 date / datetime string; None for anything else (a non-string, a malformed string, an out-of-range field such as month 13 or hour 24). The shape: YYYY-MM-DD, optionally T/t/space + hh:mm[:ss[.fff…]] + an optional offset (Z, ±hh:mm, ±hhmm); a time without an offset is UTC; the fraction (1–9 digits, . or ,) is truncated to milliseconds.