The date component was deprecated for the date variable.
This article has been saved for historical purpose.
Why ?
With the date component, you could format any date:
<date/>
Monday, 06 May 2024
To have it refresh every day, we expire the cache date daily
<cache expiration="@daily"/>
<date format="%h %d"/>
May 06
<date locale="fr"/>
Monday, 06 May 2024
<date format="%A">2021-09-27</date>
Monday
You can even print a date metadata of a page.
<date>$date_published</date>
Monday, 17 April 2023
<date format="formatValue" lang="language"/>
<date format="formatValue" lang="language">dateValue</date>
where: