Using strftime

Ahmed, Shakir shahmed at
Wed Sep 3 19:31:38 CEST 2008

You can try

Import time
mytimeymd = time.strftime('%y%m%d')

print mytimeymd

-----Original Message-----
From: at
[ at] On Behalf Of
Sent: Wednesday, September 03, 2008 1:21 PM
To: python-list at
Subject: Using strftime

I have one line of code that put's an old date in my code.

ie.textBoxSet('_ct10_PlaceHolder_txtEnd', '8/15/2008')

What I wish to do in another similiar line is have the field populated
with the current system date?  How best to do this?  I've read some of
the strftime documentation but as of yet I'm unable to get it to work

Help is appreciated.


More information about the Python-list mailing list