datetime — Basic date and time types — Python 3 documentation#datetime.date.isoformat
date.isoformat()Return a string representing the date in ISO 8601 format,
YYYY-MM-DD:>>> import datetime as dt >>> dt.date(2002, 12, 4).isoformat() '2002-12-04'
Printed 2026-06-28.
(echo:: @ ᯤ)