Skip to main content

format_date

Function format_date 

Source
pub fn format_date(year: i64, month: u32, day: u32) -> String
Expand description

Formats a date as YYYY-MM-DD.

§Arguments

  • i64 - The year.
  • u32 - The month, 1 through 12.

§Returns

  • String - The formatted date.