I’ve created a date picker field with Display Format and Return Format both set to m/d/Y. When editing the post I can see the Display Format is working correctly (03/07/2019), however when visiting the page March 7, 2019 is displayed. To double check I generated the following php code which also looks fine to me. Does anyone encountered the same issue and does someone know how to fix it? Thank you!
'key' => 'field_5c703c1fd5851',
'label' => 'Valid until date',
'name' => 'valid_until_one',
'type' => 'date_picker',
'instructions' => 'You don\'t have to fill in a date when your deal doesn\'t have an expiry date.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'display_format' => 'm/d/Y',
'return_format' => 'm/d/Y',
'first_day' => 1,
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Making gutenprogress with my new site. All done with the block editor. I don't like it, but I can make it work. (There's a lot in life like that.) HOWEVER, @wp_acf is letting me create custom blocks that do exactly what I need. That's a good thing.