Hello!
Currently I am editing the custom event table list plugin for EE3.
The code I am using to display start date and start time is:
<?php echo event_date_display($event->start_date.’ ‘.$event->start_time, get_option(‘date_format’).’ ‘.get_option(‘time_format’)) ?>
Which returns the following:
September 21, 2015 1:00 pm
What I am looking to accomplish is a format like this:
Sept 21 – Sept 28th, 2015 from 1:00pm to 3:00pm
I wanted to specifically list the start dates in a shortened format (sept 21 – Sept 28th, 2015) followed by the event start time – end time. Exactly like I have written above.
Could someone please kindly assist in helping me figure out how to write this code for my template? I have struggled for quite some time trying to figure this out.
Thank you very much Dean,
This worked absolutely flawlessly!
Viewing 2 reply threads
The support post ‘How do I echo out the start date – time / end date time?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.