4 Nov
2002
4 Nov
'02
12:30 p.m.
Thanks Dieter, I knew it was simple.... -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Saturday, November 02, 2002 6:03 PM To: McDonnell, Larry Cc: 'Zope@Zope. Org' (E-mail) Subject: Re: [Zope] Converting an input date string McDonnell, Larry writes:
How do I convert an input date string "10/22/02" to "2002/10/22" in a date format? You split it at "/" and rearrange the peaces:
In Python (Script): month,day,year= datestring.split('/') return '20%02d/%02d/%02d' % (year,month,day) Dieter
8553
Age (days ago)
8553
Last active (days ago)
0 comments
1 participants
participants (1)
-
McDonnell, Larry