Using strftime

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


You can try

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

print mytimeymd


-----Original Message-----
From: python-list-bounces+shahmed=sfwmd.gov at python.org
[mailto:python-list-bounces+shahmed=sfwmd.gov at python.org] On Behalf Of
frankrentef
Sent: Wednesday, September 03, 2008 1:21 PM
To: python-list at python.org
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
correctly.


Help is appreciated.

THNX
--
http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list