Today (date)



examples/datetime/today.py
import datetime

now = datetime.datetime.now()
print(now.date())
print(type(now.date()))


today = datetime.date.today()
print(today)
print(type(today))

2023-04-17
<class 'datetime.date'>
2023-04-17
<class 'datetime.date'>