How to show an ACF date in a different format

I have created a date picker in ACF now I go to use the date from the ACF field, and it is in long form when calling the data on the front end.

  • tried
    {{dc:acf:post_field field=“portfolio_sort” format=“F j, Y”}} and
    {{acf:portfolio_sort format=“F j, Y”}}

But it is still just giving me the original machine date

Hello @wicara,

Thanks for writing to us

In order to display the ACF date in a different format I would suggest you please add this parameter to the dynamic content code. {{dc:acf:post_field field=“portfolio_sort” type=“date” format=“F j, Y”}}.

Hope it helps
Thanks

I tried adding the parameters

as you can see it did not work

Hey @wicara,

Instead of using {{dc:acf:post_field field=“portfolio_sort” type=“date” format=“F j, Y”}}, you should use {{dc:acf:post_field field="portfolio_sort" type="date" format="F j, Y"}}. The difference is between “” and "".

Hope that helps and let us know how it goes.

Thank you that worked

Hey @wicara,

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.