Thread tagged as: Configuration, Events, Perch1

Events App

Is it possible to hide/omit the event time so only date appears?


Tuesday, 25th October 2016 6:17 PM (only want to show Tuesday, 25th October 2016)

<div class="holder">
        <div id="intro">





Bernard Fisher

Bernard Fisher 0 points

  • 4 years ago

Yes that should be possible. Can you post your event-detail.html template?

Hi Mike

Here it is ..

<div class="vevent"> <h2 class="summary"><perch:events id="eventTitle" /></h2>

<p class="dtstart"><span class="value-title" title="<perch:events id="eventDateTime" format="c" />"><perch:events id="eventDateTime" format="%c" /></span></p>

<div class="description"><perch:events id="eventDescHTML" type="textarea" textile="true" editor="markitup" encode="false" /></div>

<p class="category"><perch:events id="category_names" encode="false" /></p>

<perch:if exists="image">
    <img src="<perch:events id="image" type="image" label="Image" width="640" crop="true" />" alt="<perch:events id="eventTitle" />" />


Thanks Bernard

Hi Bernard,

You need to change the format of the eventDateTime, using strftime. I think something like this should give you what you are after:

<perch:events id="eventDateTime" format="%A %d %B %Y" />

You can read more about strftime here:

Many thanks Mike.

Will give that a go and let you know how it goes.

Thanks Bernard

Hi Mike

That did not work.

Regards Bernard

It should have done - what was output to the page when you used it?