• Resolved jingz

    (@jingz)


    Hello,

    I am using version 4.0.1 of this plugin.
    But I can not get an other date format in the email.

    My standard code for date field is:
    [date* date-geburtsdatum id:geburtsdatum-job]

    I tried: [_format_your-date “D, d M y”]
    ==full-code:
    [date* date-geburtsdatum id:geburtsdatum-job _format_date-geburtsdatum “j. F Y”]

    And tried: date-format:dd\-mm\-yy
    == full code:
    [date* date-geburtsdatum id:geburtsdatum-job date-format:dd\-mm\-yy]

    But every time, the date format in the email looks like: 2014-10-31 (YYYY-MM-DD).
    I want output the date format: j. F Y (day. full month name and year).

    Please help me to get correct date format in the email ??

    Thanks!

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Are you asking for the email that you get, after the sender fills out? if so it a shorter tag the tag would be That is just a little way down the admin part where you make the form tags it would be like this [date-geburtsdatum]

    Thread Starter jingz

    (@jingz)

    Hello,

    thanks for reply.

    In the output part in the admin, I added the shortcode: [date-geburtsdatum]
    The output in the email is how I described in my post above.

    It the shortcode in the output part in the admin wrong?

    I tried this:
    [date-geburtsdatum date-format: j. F Y]

    But outputs in the email is the shortcode [date-geburtsdatum date-format: j. F Y] instead the date.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter jingz

    (@jingz)

    Hi Takayuki,

    thanks for reply.

    I know the linked dokument.
    But can not figuring out how it works.

    This is my shortcode for the date field in the form-field in the WordPress admin (left site):
    [date* date-geburtsdatum id:geburtsdatum-job]

    And this is the short code for output the mail-text:
    [date-geburtsdatum]

    I tried now:
    [date-geburtsdatum _format_date-geburtsdatum “D, d M y”]
    and
    [date-geburtsdatum _format_geburtsdatum “D, d M y”]

    in the output-area and but it not works.

    I received the email with the content:

    Geburtsdatum: [date-geburtsdatum _format_geburtsdatum “D, d M y”]
    Geburtsdatum: [date-geburtsdatum _format_date-geburtsdatum “D, d M y”]

    What I am doing wrong?
    Can you give me to short code which is working correctly with the date format j. F Y?

    Thanks!

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try this:

    [_format_date-geburtsdatum "D, d M y"]

    Thread Starter jingz

    (@jingz)

    Hi Takayuki,

    that’s perfect!
    Thank you very much!

    I missunderstood the manual in the document fpr date in mail.

    Cheers!

    Thread Starter jingz

    (@jingz)

    BTW
    resolved! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘set/change date format in email’ is closed to new replies.