Using strftime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • frankrentef

    Using strftime

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


    ie.textBoxSet(' _ct10_PlaceHold er_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
  • Ahmed, Shakir

    #2
    RE: Using strftime


    You can try

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

    print mytimeymd


    -----Original Message-----
    From: python-list-bounces+shahmed =sfwmd.gov@pyth on.org
    [mailto:python-list-bounces+shahmed =sfwmd.gov@pyth on.org] On Behalf Of
    frankrentef
    Sent: Wednesday, September 03, 2008 1:21 PM
    To: python-list@python.org
    Subject: Using strftime

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


    ie.textBoxSet(' _ct10_PlaceHold er_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
    --


    Comment

    Working...