Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change todays date formate in python

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