Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change todays date formate in python

>>> datetime.today().strftime('%Y-%m-%d-%H:%M:%S')
'2021-01-26-16:50:03'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #todays #date #formate #python
ADD COMMENT
Topic
Name
6+6 =