I’ve seen some similar posts on this topic – but none that seem to have the answer I’m looking for.
I wish to display dynamic data in blocks on two types of pages, which will be post_meta populated by ACF date picker fields. Examples can be found on the following pages:
The date format on the ‘manager’ page is outputted as YYYYMMDD, while the format on the ‘player’ page YYYY-MM-DD. I’ve absolutely no idea why the two formats are different here. But, in both instances, I’d like the date to be shown as DD/MM/YYYY.
Can this be done with one function in the functions.php file?