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