from datetime import datetime
now = datetime.now()
print(now.strftime("%d/%m/%Y %H:%M:%S"))
>>> from datetime import datetime
>>> datetime.today().strftime('%Y-%m-%d')
'2021-01-26'
>>> from datetime import datetime
>>> datetime.today().strftime('%Y-%m-%d')
'2021-01-26'