If you want to change how the date is displayed in your {quarto}
documents, this is handy.
One, decide what date you want included:
- now
- today
- last-modified (this is my favorite, because I can tell if I’ve got the most recent version)
Then, you can change how the date is displayed using the date-format
option.
My personal preference is for something like 2022-12-08 13:42, to avoid any ambiguity when I’m generating reports for others.
---
date: last-modified
date-format: YYYY-MM-DD HH:mm
---
Reuse
Citation
BibTeX citation:
@online{mflight2022,
author = {Robert M Flight},
title = {Customizing the {Displayed} {Date} in {Quarto} {Pubs}},
date = {2022-12-08},
url = {https://rmflight.github.io/posts/2022-12-08-customizing-the-displayed-date-in-quarto-pubs},
langid = {en}
}
For attribution, please cite this work as:
Robert M Flight. 2022. “Customizing the Displayed Date in Quarto
Pubs.” December 8, 2022. https://rmflight.github.io/posts/2022-12-08-customizing-the-displayed-date-in-quarto-pubs.