Support

Home Forums Event Espresso Premium DOB format in registration form

DOB format in registration form

Posted: June 10, 2015 at 7:24 pm

Viewing 4 reply threads


Ben May

June 10, 2015 at 7:24 pm

Hi,

I am using EE4 and I need to use an Australian date format in my registration form. I have updated the date format in the WordPress General settings, but this has not worked. We have not made any customisations to this, and I am wondering if there were any suggestions for this. I noticed a few other forum topics on this, but did not see a clear answer for the issue.

Thanks,

Ben


Tony

  • Support Staff

June 11, 2015 at 4:11 am

Hi Ben,

Currently the datepicker output format can not be changed from mm/dd/yyyy

I have created a ticket for some feedback from our developers on this with a note to update this thread with any news.


Dean

June 11, 2015 at 4:24 am

Hi Ben,

Looks like it is using the jQuery Datepicker default (US of course), and I can’t see a way of changing it without modifying a core file.

I’ll raise ticket to look into this.

If you do want to modify the core file, which we don’t really recommend, you would need to look at /wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/scripts/form_section_validation.js, and at line ~68 where it says yearRange: eei18n.datepicker_yearRange change it to say:

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

(for a day/month/year format).


Ben May

June 11, 2015 at 4:32 am

Hi Dean,

Thanks for this, great support. Wondering if there are issues with updating a core file beyond it being overwritten with future upgrades? This would be something that we can manage.

Thanks,

Ben


Dean

June 11, 2015 at 6:03 am

Hi,

Well I would back up the file first just in case, but I can’t see any issues with that change as it’s relatively minor, and shouldn’t affect registrations, just the answer to those question types.

Viewing 4 reply threads

The support post ‘DOB format in registration form’ 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