<code>
import datetime
yesterday = datetime.date.today () - datetime.timedelta (days=1)
print yesterday.strftime ("%d%m%y")
</code>
TJG
I assume you're running Python 3.1? Try this:
print (yesterday.strftime ("%d%m%y"))
TJG
By the way, the convention on this list is to bottom-post,
that is to add your comments / reply to the bottom of the
post you're replying to. These things vary from one place
to another, but it's only courteous to follow the local
customs :)
TJG
Thanks but what the previous poster forgot to mention was that you
should also trim the text that you are replying to. Notice how I
trimmed everything up to now down to two lines. This gives you the
gist of the conversation so far but makes it easier to read. People
reading the exchange will get enough out of the above to remind
themselves where we are in the conversation and if necessary they can
simply go back and read the entire thread in the archives.
--
D'Arcy J.M. Cain <da...@druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.