Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Datetime calculation in macro

$
0
0
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

Viewing all articles
Browse latest Browse all 8901

Trending Articles