im having trouble changing the date format
hi there im trying to display the specified date using Advanced Custom Post Type where in the custom fields a customer adds the date a project was done, everything works good but i want to display the date for example now is displaying it like this 2023-02-22 and i want to display it like this 02/22/2023
here is some screen shot of what i got, what i have to add
I’ve tried various ways to convert a value within the bricks element but with no joy.
e.g.
{acpt_testcpt1_testcpt1metabox_mydate:dmy}
date(‘F j, Y’, strtotime(${acpt_testcpt1_testcpt1metabox_mydate}));
echo date(‘F j, Y’, strtotime(${acpt_testcpt1_testcpt1metabox_mydate}));
Maybe this will help as seems similar - See How To -
Order by Metabox time field
Here andre shows using a filter to convert a date value. ( Well close enough )