import datetime now = datetime.datetime.now() print (f'Current date and time : {now.strftime("%Y-%m-%d %H:%M:%S")}')