• I’m using contact form 7 plugin in WordPress, and my form has date field. Whenever I submit form it shows error as: “The date format is incorrect.”

    <div class="datepicker-input" data-date-format="mm/dd/yy" data-first-day="0"> [date* your-date min:2017-01-01 max:2017-12-31 date-format:mm/dd/yy id:reservation-date step:7 name:date class:required " Pick Your Day"] 
    </div>

    I’ve also inserted this code on mail section. But it didn’t work.
    Date: [_format_your-date "D, d M y"]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter jklyn

    (@jklyn)

    Can u tell me where is error in my code? It always shows “the date format is incorrect.”

    Hi Takayuki

    That article doesn’t help a whole lot, I’m having the same issue. I found out that the format has to be in yyyy – mm – dd. However, there are caveats to this. I can put on the form header to put it in the yyyy – mm – dd format, but on Chrome the plugin does an autofill of mm-dd-yyyy.

    On Firefox and IE the plugin gives a blank form field, similar to a name and then people are able to type it in the yyyy – mm – dd format.

    Hi Takayuki, I need to add the current date to subject field (at mail tab), and I don’t know how to do that, can you help me please?.
    So many thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date field of Contact form 7 is not working’ is closed to new replies.