Support

Home Forums Event Espresso Premium Date picker Format when entering events,

Date picker Format when entering events,

Posted: January 9, 2018 at 1:16 pm

Viewing 4 reply threads


PhilipEFT

January 9, 2018 at 1:16 pm

Hi
Newbie question ๐Ÿ™‚

I have just installed EE4 and set it all up ok. I am now entering a lot of my events into the system.

When entering event details the Date Picker displays the date in yyyy-mm-dd format and I find that confusing and I keep on making mistakes.

How can I change this to be dd-mm-yyyy?

Many thanks,
Philip.


Tony

  • Support Staff

January 10, 2018 at 5:26 am

Hi Philip,

You can use a function like this:

function ee_change_dtt_formats( $formats ) {
    return array(
        'date' => 'd/m/Y',
        'time' => 'H:i'
        );
}
add_filter( 'FHEE__espresso_events_Pricing_Hooks___set_hooks_properties__date_format_strings', 'ee_change_dtt_formats' );

Add that to a Custom Functions Plugin on your site and it will change the format for you.


PhilipEFT

January 10, 2018 at 10:59 am

Hi Tony,
That worked perfectly. It took me a while to realise that I had to install the “My Custom Functions” plugin.. but after doing that it was very easy.

All the best,
Philip.


Tony

  • Support Staff

January 10, 2018 at 11:52 am

With regards to the ‘My Custom Functions plugin’, you don’t need to install that.

If you click the ‘Custom Functions Plugin’ link in my reply you’ll be taken here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That guides you through how to build your own custom functions plugin for the site where you can add function. The plugin you mentioned can also be used, but the actual plugin file will be slightly quicker to load.


PhilipEFT

January 10, 2018 at 3:11 pm

Ok. I understand how it all works now. That makes sense. :^)

All the best, Philip.

Viewing 4 reply threads

The support post ‘Date picker Format when entering events,’ 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