Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #626823

    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

    #627592

    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

    #627975

    Attached, thanks!

    #629596

    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

    #629598

    Yes, we are still getting contact forms that are returning DD MM YYYY.

    I’ve changed the user role to admin. Thanks

    #630619

    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

    #630889

    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

    #631877

    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

    #631898

    I’ve added it to my functions.php under my child theme but it still does not appear to be working :(

    #631900

    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!

    #633404

    Hi,

    Great. Glad it is working now. :)

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.