• Resolved Sanjeev Sharma

    (@sanjeevz)


    The date field in my form is formatted as DD/MM/YYYY but for some strange reason the email sent on form submission shows the date in YYYY/MM/DD format.

    I have checked the date settings in WP Admin > General Settings and the date format is set as d/m/Y.

    Wondering why this is happening and how to fix this?

    Thanks in advance.

    Sanjeev

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor hugreed

    (@hugreed)

    Hi, you can use macros to format the output of the field value. Specifically for date formatting you need to replace your %field_name% with %field_name|format_date%

    In this case, the date format will match the one configured in your settings. If you need a different one, you can specify it directly like this: %field_name|format_date(Y-m-d H:i:s)%.

    Thread Starter Sanjeev Sharma

    (@sanjeevz)

    Thanks Oleksandr.

    Your solution worked like a charm!

    Thanks again ????

    Sanjeev

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect Date Format’ is closed to new replies.