• Resolved slrmodels

    (@slrmodels)


    Hi. I have a contact form on my website and have the “Current Date” value set in the notification email. This is working fine but it’s displaying the date in an American format (mm/dd/yy). I’m in the UK so I would like to change it but I can’t find anywhere to do that.
    Is there a way of changing this or does it use a setting in WordPress somewhere for it’s format?

    Thanks in advance
    Nicki

    • This topic was modified 4 years ago by slrmodels.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Are you using a date picker? If so that is a configurable feature of that field. You just need to go to the settings of that field and change its ‘Date Format’ in its settings.

    Hope this helps but if it doesn’t please let me know!

    Thread Starter slrmodels

    (@slrmodels)

    @edgarrojas no, this isn’t a field on the form. The date is only on the email that is sent to me after the form is submitted.
    It’s the “Current Date” field in the “Fixed Values” section when creating the email format.
    I hope that makes sense.

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Oh sorry that is not configurable, i will add this to the todo list, this can be easily configurable by going to the file smart-forms\filter_listeners\fixed-field-listeners.php

    and change this:
    return date($fieldParameters[“Format”]);

    for this:
    return date(‘Y-m-d’);

    Change ‘Y-m-d’ for the format that you want the date to have.

    Hope this helps but if it doesn’t please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date Format in Notification Email’ is closed to new replies.