My problem was with passing the arguments around I used ... <dtml-in "get_days_events(startDateString=startDateString)"> <dtml-var name><br> </dtml-in> notice the startDateString=StartDateString...which I thought the <dtml-let would've handled, anyway....this seems to have fixed it can anyone tell me why? cheers tom