7 Mar
2001
7 Mar
'01
3:51 p.m.
From: Rubinstein Fredrik [mailto:fredrik.rubinstein@ivf.se]
I'm trying to build a "day" dropdown list with the current day as the selected value. However the if clause wont work for days with a daynumber below 10 since in my example below the DateTime.dd will return 07 and my sequence-item has the value of 7. Suggestions anyone please.
As far as I remember DateTime has another method that returns only 7. Just looked it up in the Zope Book: http://www.zope.org/Members/michel/ZB/AppendixB.dtml ------------ *day()* Return the integer day ------------------- Use like:: _.DateTime.day() That should do it. regards Max M