Skip to main content

is_date_code

Function is_date_code 

Source
pub fn is_date_code(code: &str) -> bool
Expand description

Whether a number-format code renders a date, as opposed to a numeric format like 0.00 or #,##0.

Deliberately narrow: it wants a y/m/d token and no digit placeholder, so an unrecognized or numeric code falls back to plain number rendering rather than being mangled into a date.