Date Format not recognized
-
Hi there,
I’m using Mailchimp for WP Premium and the woocommerce Integration.
There is a field date (birth date) at the checkout, which I’m integrating using :add_filter( ‘mc4wp_integration_woocommerce_data’, function( $data ) {
$data[‘BIRTHDATE’] = sanitize_text_field( $_POST[‘birthdate’] );
return $data;
});The date format is in datepicker field is dd/mm/yyyy (also the format of the mailchimp mergetag), but Mailchimp for WP doesn’t seem to recognize it and populate with yyyy/mm/dd instead (the report log item shows: DATE OF BIRTH: 1970-01-01 ). No errors are displayed though in the Debug Log though.
Thank you very much in advance for you help!
The topic ‘Date Format not recognized’ is closed to new replies.