Hey Friends,
I have a channel on a site that contains start & end date custom fields for a calendar. I’m listing the dates in my template and I’m trying to figure out the logic to show the end date’s month only if it differs from the start day’s month.
For instance,
May 5-15
June 29-July 5
Here’s what i’m thinking, (but it’s not working). It’s a multi-conditional that shows the end date if it’s available, but i’m having trouble figuring out the logic to check to see if the months match between entry_date & event_enddate. Thoughts?
{entry_date format="%M %j"}{if event_enddate}-{if entry_date format="%M" != event_enddate format="%M"}{event_enddate format="%M"} {if:else}{/if}{event_enddate format="%j"} {if:else}{/if}