all Python 3datetimefunction
datetime.date.today()
date
Return today's date as a date object (no time part); a classmethod called on the date class itself.
Syntax
from datetime import date
date.today()
The value comes from the machine's local clock, not UTC, so near midnight a server in another timezone reports yesterday or tomorrow; use datetime.now(timezone.utc).date() when you need the UTC day. A date never compares equal to a datetime — equality is always False and ordering raises TypeError — so convert the other object with .date() first.
Examples
from datetime import date
today = date.today()
print(today) # → ? сегодняшняя дата, например 2026-10-07
print(today.year, today.month, today.day) # → ? например 2026 10 7
See also
Open in the full glossarydocs.python.orgReport an inaccuracy