I'm using some php code (output parsing) in a template, between {exp:channel:calendar} tags. I have a line assigning the value of a custom date field to the php variable %endDate. Then, I need to test if {date} is equal to this $endDate variable. But if I use {date} alone it just takes the string "{date}" instead of its actual value, and I think that's because that tag requires a format parameter, so now I'm tryng this:
if ("{date format="%U"}" == $endDate)
but, obviously, this gives me a php syntax error and just screws up half of the template... Any idea what syntax I should use to do this?