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
# 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)