Yesterday in Python

from datetime import datetime, timedelta 

yesterday = datetime.now() - timedelta(days=1) 
yesterday.strftime('%m%d%y') 

Reference
http://stackoverflow.com/questions/1712116/formatting-yesterdays-date-in-python

Thank you (-:

Advertisements

About Miller

I live in Second Life with my shoulder pet Logan. I write code for her and I sometimes greet people in the Virtual Kennel Club Dog Park at Turing Isle: http://slurl.com/secondlife/Turing Isle/128/126/27/ I also write in my own Blog at http://miller.logspark.com and sometimes even on FB.
This entry was posted in Just Posting, Python/App Engine and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s