- This topic has 7 replies, 3 voices, and was last updated 6 years, 3 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › eMember Form Builder – Date Picker – Date format
How to change the date picker format in the form builder registration form to dd-mm-yyyy?
Is there a “Field Layout” option for that custom field?
Yes there is, but only align field options
No, this can’t be changed without modifying the code. When users select a date from the date-picker, the format usually doesn’t matter as they are picking the date using a visual system.
Here, this date format is not common and my customers find it confusing even though they choose from the date-picker. Can you give me the code to change this?
“Here” is the Netherlands and the format is dd-mm-yyyy 31-12-2018
We use the international date format: Year-Month-Day
You can customize the following code:
Open this file: emember-form-builder/js/emember-form-builder-validate.js
Search for “dateFormat” in that file. Change the value to what you want. I don’t know if it will cause issues with reading the value for existing data though. Since the existing data will already be saved in the other format.