Skip to main content

reformat_date_label

Function reformat_date_label 

Source
pub fn reformat_date_label(label: &str, format_str: &str) -> String
Expand description

Reformat a date label using the given strftime format string. If format_str is the special QUARTER_FORMAT marker, formats as “Q1 ’23” etc. If the label cannot be parsed as a date, returns it unchanged.