Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Using strftime

Reply
Thread Tools

Using strftime

 
 
frankrentef
Guest
Posts: n/a
 
      09-03-2008
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
 
Reply With Quote
 
 
 
 
Ahmed, Shakir
Guest
Posts: n/a
 
      09-03-2008

You can try

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

print mytimeymd


-----Original Message-----
From: python-list-bounces+shahmed=(E-Mail Removed)
[mailtoython-list-bounces+shahmed=(E-Mail Removed)] On Behalf Of
frankrentef
Sent: Wednesday, September 03, 2008 1:21 PM
To: http://www.velocityreviews.com/forums/(E-Mail Removed)
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: time.strftime Timezone issue Tim Peters Python 1 06-13-2004 04:08 AM
time.strftime Timezone issue Allen Unueco Python 1 06-13-2004 01:42 AM
strftime not working as expected Bryan O'Malley C++ 8 02-17-2004 08:34 AM
strftime - %a is always Monday ? Richard Shea Python 5 12-30-2003 08:04 PM
gcc 3.3, solaris 8, compile error - 'strftime', 'localtime', etc. "not declared" Bimal C Programming 1 08-20-2003 12:33 PM



Advertisments