Hi,
I’ve recently changed the date format to MM DD YYYY for the contact form, referencing this (https://kriesi.at/support/topic/mm-dd-yy-order-in-datepicker/#post-455494). However, in the outgoing email it still uses the DD MM YYYY format. How do I go about changing this?
THanks
Hey discotech,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Thanks,
Rikard
Attached, thanks!
Hi,
We tested this on our installation and the date return MM / DD / YY as expected. Did you hard refresh before testing the contact page? Please set the user role to admin because we need full access to the site.
Best regards,
Ismael
Yes, we are still getting contact forms that are returning DD MM YYYY.
I’ve changed the user role to admin. Thanks
Hi,
where can we see the issue? Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
Andy
If you go to a page with a contact form:
You will see that it says MM / DD / YYYY but when you pick a date it shows up as DD / MM / YYYY. Then when the email is sent, the date in the email is in the DD / MM / YYYY format as well.
Thanks,
Mark
Hi,
Date picker format is still set to default. Please add this in the functions.php file:
add_filter('avf_datepicker_dateformat', 'avf_change_datepicker_format');
function avf_change_datepicker_format($date_format) {
$date_format = 'mm / dd / yy';
return $date_format;
}
Best regards,
Ismael
I’ve added it to my functions.php under my child theme but it still does not appear to be working :(
Never mind i added this:
add_filter( ‘avf_datepicker_dateformat’, function(){ return ‘mm / dd / yy’; } );
add_filter( ‘avf_datepicker_date_placeholder’, function(){ return ‘MM / DD / YY’; } );
and now it works. Thanks!