Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi PixelPixie,

    You might want to check out this page as it talks about the date value formation specifically. From this page “To change the format in mail, you can use a variant of mail-tag notation [_format_{field name} “{date format}”].”

    It looks like the following would get you started in the right direction.

    [_format_your-date "D, d M y"]

    Let me know if that works!

    Best Regards,

    Mike

    Thread Starter PixelPixie

    (@pixelpixie)

    Thank you Mark. I’ll have a look at that and let you know how I get on.
    Best regards

    P.

    Thread Starter PixelPixie

    (@pixelpixie)

    That worked for the form output Mike.
    I was however hoping to change the way the date is formatted in the actual form itself. Chromium and Opera display the DATE type as a pop-up calendar but Firefox does not.
    The format we use in this part of the world is dd-mm-yyyy.

    Thanks

    P.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Yes, I had to use the same date format and it worked for me:

    [_format_your-date “D, d M y”]

    Thank you!

    I am new to WordPress and using Contact Form 7.
    Where, precisely, should I put/insert that code :
    [_format_your-date “D, d M y”]
    to change the format in autoresponse mail, please. Thank you.

    I’ve found how to do it. Thank you.

    Hi! I’ve tried to use the format date to send an email in the following format:
    dd-mm-YYYY

    But I’ve not been able, as joaquin-tin commented, where do I need to put the format?

    This is my text field configuration:

    <p>Fecha evento (requerido)
    [date* fecha-evento]</p>

    So, I’ve tried to put these options:

    1. Inside date*
    [date* fecha-evento _format_fecha-evento “d-m-Y”]]

    2. Outside date*
    <p>Fecha evento (requerido)
    [date* fecha-evento]
    [_format_fecha-evento “d-m-Y”]]</p>

    But none of them worked. Could someone of you tell me where to put the format condition in the form? Many thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change date format in contact form 7’ is closed to new replies.