[b][red]This message was edited by enry at 2003-6-2 7:14:11[/red][/b][hr]
Does anyone know how to convert a date from format DD/MM/YYYY into format YYYY/MM/DD using Python in Zope?
I get a string date from an input box named EventDate which I then need to pass to a so that I can then convert its format. The lines of code I've wrotten give the errors below.
Please help me.
Error Type: TypeError
Error Value: __setitem__() got an unexpected keyword argument 'fmt'
Expression (Python) Syntax error:
unexpected EOF while parsing
The code I have found on Zope.org works ony if you accept in the imput box the american date format (MM,DD,YYYY) and not (DD,MM,YYYY).
In the form:
In the DTML method:
How do I change EventDate into the (DD,MM,YYYY) format?
Thanks a lot for your help.
0 · ·