[Zope] input/represent date the European way
Gidon Friedman
gidon@stars.ch
Mon, 28 Feb 2000 19:16:28 +0100
hi to all
i'm running zope 2.1.2 on win95 binary distribution for development.
A) ouput question:
i have to use :
<dtml-var ab fmt=dd>.<dtml-var ab fmt=mm>.<dtml-var ab fmt=year>
to show: 28.2.2000
<dtml-var ab fmt=%d.%m.%Y> shows: 27.2.2000
Is there a better way to get the right date the European way?
B) input question:
i have a form asking for a date. see these examples
28.2.99 -> 1999/02/28
2/28/99 -> 1999/02/28
28.2.00 -> Invalid Date-Time String
2/28/00 -> 2000/02/28
28.2. -> Invalid Date-Time String
can i prevent the errors?
thanks
gidon