Answers for "date today python format"

1

today date in python

from datetime import date
today = date.today().strftime("%d-%m-%Y")
Posted by: Guest on March-24-2021
0

how to change todays date formate in python

>>> datetime.today().strftime('%Y-%m-%d-%H:%M:%S')
'2021-01-26-16:50:03'
Posted by: Guest on July-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language