from datetime import date
today = date.today()
print("Today's date:", today)
today = datetime.today().strftime("%Y-%m-%d %H:%M:%S")
from datetime import datetime
# Current date time in local system
print(datetime.now())
print(datetime.date(datetime.now())) ##For Date
current_date = datetime.date.today()
from datetime import date
current_date = date.today()
print("today's date is ",current_date))
# Python program to demonstrate datetime object
# import datetime class
from datetime import datetime
# Calling now() function
today = datetime.now()
print("Current date and time is", today)
from datetime import date
today = date.today()
print("Current date =", today)
import datetime
date_object = datetime.date.today()
print(date_object)