• Resolved seosembra

    (@seosembra)


    Hello wordpress community and all of you, who use contact form 7 as well,

    I designed a website for a good friend by additional using the beautiful plugin “contact form 7” in several forms. In every form I insert a date field.

    The date field works fine, but only the date format on email wich the admin receive is in a, for me, invalid format.

    I have checked the guidelines and faq from the plugin owner and try to format the date by using [_format_your-date “D, d M y”] values.

    In practical use it will look like this:

    [date* datumstag class:form-control _format_datumstag “D, d M y”]

    but this additional settings show no reaction.

    Additionally I added the plugin “date-picker”. If I activate the Plugin the date field don′t show.

    I′m glad to hear the answers of the experts ;).

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

    (@takayukister)

    Thread Starter seosembra

    (@seosembra)

    Hi takayukister,

    I tried to build the format structure of the date field you can see in my example “[date* datumstag class:form-control _format_datumstag “D, d M y”]” but without any solution.

    Could you please be more specific what could solve the date field vom 2918-08-29 to 29-08-2018.

    Thanks a lot.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The mail tag that formats the field value “29-08-2018” is [_format_datumstag "d-m-Y"].

    I tried to create a date field in contact form 7, [date date-945] and I have WordPress set to the default time zone of new York pa. I get an error when submitting the form in Internet explorer ‘the date format is incorrect. when I enter the date, I have tried 1/17/2019 and 01/17/2019 and I get an error with both submissions.
    I don’t have any validation set up for the date and I still get the error. It is also not a required field.

    Hey @takayukister

    Plugin is great but realy date format can be a tricky. I working with clients over the world and have some problems to display proper date format inside input field. Also would be good that CF7 support pattern attribute.

    To fix this problem with date I build some small custom shortcode with javascript for date formatting on my project.

    My suggestion for CF7 plugin is that you add some small functionality for the date format where users can choose how date will look inside input field.

    Thanks!

    ronnenberger

    (@ronnenberger)

    [_format_date_day “d-m-Y”]

    Unfortunately this code does not work for me.
    The issue appears as usual international 2019-02-13.
    What am I doing wrong ?
    I want to display the date like this: 13-02-2019

    Hi, I fully agree with Ivijan-Stefan Stipic.

    The date format is very tricky for me. I need an European date format and I couldn′t find a proper way to do that.

    I would be great, if CF7 could have this funcionality (to change it without rewriting the code).

    Thx a lot for a consideration.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Date Format in Contact Form 7’ is closed to new replies.