Support

Home Forums Event Espresso Premium Change how datetime is displayed on edit event backend page

Change how datetime is displayed on edit event backend page

Posted: October 22, 2015 at 2:28 pm

Viewing 1 reply thread


Ben

October 22, 2015 at 2:28 pm

Hello!

Is it possible to change how the date format is displayed on the edit event page under the Event Datetimes?

Rather than have the times displayed like “2015-10-27 10:00 am” we’d like to see “10-27-2015 10:00 am”

Here’s a screenshot of the spot where we’d like to change the format displayed:
http://snag.gy/bmsMU.jpg

Thank you!


Josh

  • Support Staff

October 22, 2015 at 3:36 pm

Hi Ben,

Yes this is possible with the following code that you can add to a functions file:

function ee_new_dtt_formats( $formats ) {
    return array(
        'date' => 'm-d-Y',
        'time' => 'g:i a'
        );
}
add_filter( 'FHEE__espresso_events_Pricing_Hooks___set_hooks_properties__date_format_strings', 'ee_new_dtt_formats' );

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 1 reply thread

The support post ‘Change how datetime is displayed on edit event backend page’ 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