Forum
Events App
Is it possible to hide/omit the event time so only date appears?
e.g.
Tuesday, 25th October 2016 6:17 PM (only want to show Tuesday, 25th October 2016)
<div class="holder">
<div id="intro">
<?php
perch_events_custom(array(
'filter'=>'eventSlug',
'match'=>'eq',
'value'=>perch_get('event'),
'template'=>'events/listing/event-detail.html'
));
?>
</div>
</div>
Thanks
Bernard
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>
</div>
Thanks Bernard
Hi Bernard,
You need to change the
format
of theeventDateTime
, usingstrftime
. I think something like this should give you what you are after:You can read more about
strftime
here: https://www.php.net/manual/en/function.strftime.phpMany 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?