Hi all:
I know I could write a series of conditionals for this one, but that strikes me as inefficient. Here’s the scoop. I have three custom fields that are date fields. I need to display ONLY the one that is most current. So can someone recommend a way for me to do this? With date format set to %Y%m%j it would be easy to see which of the three is the largest - but how to I efficiently do the comparison?
{If date1 > date2 AND date1 > date3}display date1{/if}
{if date2 > date1 AND date 2 > date3}display date 2{/if}
{if date3 > date1 AND date3 > date2}display date3{/if}Is that really my only native option without using PHP? What approach would you recommend?