Support

Home Forums Event Espresso Premium Get the start time

Get the start time

Posted: April 23, 2013 at 6:35 am


Achim Baur

April 23, 2013 at 6:35 am

I am in the process of customizing my template and at one point I want to display the start and end time of my event. Just these two times, no formatting.

I figured out how to get the start date (<?php echo date(‘j’,strtotime($start_date)); ?>). How do I get just the start and end time?


Josh

  • Support Staff

April 23, 2013 at 11:32 am

Hi Achim,

There’s a shortcode you can use with the do_shortcode function. So for the start time it would be something like:

<?php echo do_shortcode('[EVENT_TIME event_id="'.$event_id.'" type="start_time" format="g:i a"]'); ?>

More info here:

https://eventespresso.com/wiki/shortcodes-template-variables/#time-date

The support post ‘Get the start 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.

Event Espresso