For a section on an EE site I want to display entry dates but only for the past year, hiding the date for previous years. How do I do that?
Is it something like this?
{if "{current_time format='%z'}" == "{entry_date format='%z'}"}
{date_heading}
{!--<div class="date">{entry_date format="%l, %F %j, %Y"}</div>--}
{/date_heading}
{if:else}
{date_heading}
<div class="date">{entry_date format="%l, %F %j, %Y"}</div>
{/date_heading}
{/if}What would be the entry date format for specific years?