Hi there, 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. Fred <dtml-let Date="_.DateTime()"> <dtml-var expr="_.DateTime.dd(Date)"> <SELECT name="day_fld"> <dtml-in expr="_.range(1,32,1)"> <dtml-if expr="_['sequence-item'] == _.DateTime.dd(Date)"> <OPTION SELECTED value='<dtml-var sequence-item fmt="%02d" >'> <dtml-var sequence-item fmt="%02d" > </OPTION> <dtml-else> <OPTION value='<dtml-var sequence-item fmt="%02d">'> <dtml-var sequence-item fmt="%02d"> </OPTION> </dtml-if> </dtml-in> </SELECT> </dtml-let>