Skip to main content

format_date

Function format_date 

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

Parse an RFC3339 string, convert to local time, format as YYYY-MM-DD. Returns "" for None or an unparseable value (parity with the JS new Date(value) + ymd, which is local-timezone).