date.today() returns the current local date as a date object with only year, month, and day. It is the same as date.fromtimestamp(time.time()).
datetime.today() also exists because datetime inherits from date; it returns the current local date and time as a naive datetime, like now() with no argument. Neither version accepts a time zone.
date.today() is a classmethod of datetime.date: call it on the class itself, as date.today(...), and it returns a new object. Import the class first, for example from datetime import date. The datetime class has a method with the same name.
Syntax
Call it on the date class (or on datetime to include the time).
python
day = date.today()
moment = datetime.today()
Call
What it does
date.today()
Gives the current local date, for example a date that prints as 2026-11-19.
datetime.today()
Gives the current local date and time as a naive datetime.
date.today() - timedelta(days=7)
Gives the date one week ago; arithmetic with timedelta returns a new date.
For the current date in UTC, which can differ from the local date near midnight, use datetime.now(timezone.utc).date().
Method signatures
python
classmethod date.today()
# returns: date (current local date)
classmethod datetime.today()
# returns: naive datetime (current local date and time)
Parameters
today() takes no parameters. If you need a time zone, call datetime.now(tz) instead.
Return Value
Return Value
Description
date
From date.today(): the current local calendar day.
datetime
From datetime.today(): the current local date and time, naive.
Python Examples
Example 1 — Compare date.today() and datetime.today()
Call both versions and look at what each returns. Only stable facts are printed, not the date itself.
Two classes, one name.date.today() builds a date, while datetime.today() builds a datetime because the classmethod creates an instance of the class it is called on.
Naive result.datetime.today() has no zone, so tzinfo prints None.
Order of calls.d was read first, so it is never after the date part of dt; the comparison prints True.
No clock fields. A date has no hour attribute; only the datetime does.
Example 2 — Write an Age Function That Accepts a Fixed Date
Let the caller pass the reference day and use date.today() only as a fallback. Fixed dates make the results checkable.