Support

Home Forums Event Espresso Premium Date Picker – Change Format

Date Picker – Change Format

Posted: December 10, 2015 at 5:33 am

Viewing 4 reply threads


Alan Coyne

December 10, 2015 at 5:33 am

Hi,

Wordpress 4.3.1
EE – Version 4.8.25.p

Reg form using Date Picker Option, Im trying to change the output format when date selected to dd/mm/yyyy .

I’ve tried adding code on https://eventespresso.com/topic/localisation-of-datepicker-in-ee4/#post-171758 to functions.php file but no luck.

I’ve also tried changing code in form_section_validation.js

//yearRange: eei18n.datepicker_yearRange
yearRange: eei18n.datepicker_yearRange,
dateFormat: 'dd/mm/yy',

This also didnt work

Any help appreciated.

Thanks

Alan


Josh

  • Support Staff

December 10, 2015 at 12:19 pm

Hi Alan,

It turns out that the code in the other thread you linked to is for the datepicker that appears on the page where you create events and set dates for sale start dates, event dates, and so on.

You can set a default date format to the registration form datepicker input by adding something like this to your site:

https://gist.github.com/joshfeck/e7a461c24fe75f6decaa

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


Alan Coyne

December 11, 2015 at 3:34 am

Thanks Josh,

Issue here is all dates previously entered and new dates will have different formats? Any way around this?


Josh

  • Support Staff

December 11, 2015 at 8:01 am

Hi Alan,

A time machine. Seriously though you can go in and edit the existing entries so they have the date format you require.


Alan Coyne

December 11, 2015 at 8:04 am

Thanks Josh …I’ll jump in the Tardis!

Viewing 4 reply threads

The support post ‘Date Picker – Change Format’ 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