Skip to main content

format_date

Function format_date 

Source
pub fn format_date(dt: DateTime) -> String
Expand description

Formats a DateTime object into a string suitable for sitemap use.

§Arguments

  • dt - The DateTime object to format

§Returns

A string representation of the date in YYYY-MM-DD format