date

Function date 

Source
pub fn date() -> String
Expand description

Gets the current day, without the time.

§Returns

  • String - The formatted date as “YYYY-MM-DD”