Skip to main content

normalize_date_bound

Function normalize_date_bound 

Source
pub fn normalize_date_bound(value: &str) -> Option<String>
Expand description

Normalizes a date bound into the YYYYMMDD form the report keys use.

Reports compare bounds against row keys as plain strings, so a value that is not one of the two documented formats, or that is not a real calendar date, would silently turn the filter into a no-op or drop every row. Returns None for those values so callers can reject them.