import datetime current_time = datetime.datetime.now() todays_date = current_time.strftime("%d/%m/%Y")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()import datetime # Getting the current date current_date = datetime.date.today() # Printing the current date print(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)import datetime today = datetime.date.today() print(today)