Hi,
I can't make this datetime calculation in a dropdonw list control in a form to work. It always shows the first option regardless of the date interval greater or less then 10 days.SELECT TicketPayUrl, TicketPayUrl
FROM customtable_ParkingTicketPayURL
{% if(ToTimeSpan(CurrentDateTime - TicketDate).Days @= 10){@WHERE ItemID = 1@} #%}
{% if(ToTimeSpan(CurrentDateTime - TicketDate).Days @ 10){@WHERE ItemID = 2@} #%}I am in Kentico 11 portal engine.Thanks,
Wei Wang
↧