Site logo

[Resolved] Change Date Format – Showing Dynamic ACF Post Meta

Home Forums Support [Resolved] Change Date Format – Showing Dynamic ACF Post Meta

Home Forums Support Change Date Format – Showing Dynamic ACF Post Meta

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2113356
    Pete

    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?

    #2113457
    Ying
    Staff
    Customer Support

    Hi Pete,

    The dynamic headline just outputs the value of the field, it doesn’t adds format to the data.

    I think it’s a question for the plugin 🙂

    #2115470
    Pete

    So it is, should’ve clocked that Ying – thanks!

    #2115937
    Ying
    Staff
    Customer Support

    No problem 🙂

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