Hello,
Is there a way to modify the date picker format in the Enfold contact form element? I would like to change for U.S. audiences, so in this case the preference is Month/Date/Year. (eg. 10/22/2024).
Thank you.
Hey mattb1169,
Thank you for the inquiry.
You can use these filters in the functions.php file to change the format of the date picker:
add_filter('avf_datepicker_dateformat', 'new_date_format');
function new_date_format() {
$date_format = "mm / dd / yy";
return $date_format;
}
add_filter('avf_datepicker_date_placeholder', 'new_date_placeholder');
function new_date_placeholder() {
$placeholder = "MM / DD / YY";
return $placeholder;
}
Best regards,
Ismael