Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get yesterday date python

>>> from datetime import datetime, timedelta
>>> datetime.strftime(datetime.now() - timedelta(1), '%Y-%m-%d')
'2015-05-26'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #yesterday #date #python
ADD COMMENT
Topic
Name
8+3 =