[Zope] Getting current date
Vitor Varalonga
vpedrosa@ciberbit.pt
Wed, 28 Nov 2001 10:17:11 +0000
"Tille, Andreas" wrote:
> Hello,
>
> could somebody please tell me, how I could obtain the current date.
>
> I would like to provide selection lists from
>
> 1 to <todays day of month>
> January to <todays month>
> 2000 to <this year>
I believe the following code should do the trick:
1 to <dtml-var expr="_.DateTime().day()"><br>
January to <dtml-var expr="_.DateTime().Month()"><br>
2000 to <dtml-var expr="_.DateTime().year()">
You'll find this and much more valuable info in "The Zope Book"
(Appendix B).
kind regards,
Vitor Varalonga