WordPress Contact Form 7 datepicker change date format

I’m using Contact Form 7 plugin in WordPress, I would like some help in my datepicker on how to change the display date format in the front end in my form.
The default displays mm/dd/yy and I want to change it to dd/mm/yy but unfortunately I could not used this code:

dateFormat:dd/mm/yy 

it seems it was not working.
I also tried to change the code in the plugin editor of datepicker but it did not work also.

Read More

Do you have any idea? an you help me how to change the date format without installing contact form 7 datepicker because I would like to use the default datepicker that include in the contact form 7.

Related posts

Leave a Reply

4 comments

  1. I changed the display date format to dd/mm/yy in the front end (also in the generated email) of my form by using plugin Custom Datepicker NMR for Contact Form 7.

    This allows you to use a new input field in your contact form called [datepicker ]

    Install/activate the plugin and specify format date to show in the web browser like this:

    [datepicker myFirstDatepicker id:myFirstDatepicker format:dd/mm/yy]
    

    This plugin uses jquery-ui datepicker.

  2. Worked perfectly for me. Try with no spaces: date-format:dd/mm/yy

    So code for me in full for the line looked like this:

    <p>
       Work Start Date (<span class="required">*</span>)<br />
       [date* start-date date-format:dd/mm/yy]
    </p>
    
  3. All you have to do is put:

    [date your-date-from min:2017-01-01 max:2025-12-31 step:7 class:required "2017-01-01"]
    

    Obviously put the dates you wish to use.