Format date custom field from Unix Timestamp

I want to know how I can get a formatted date out of a field that is stored as the number equivalent of the date.

See, In toolset I get a date as “1756339200” (Unix Timestamp). How can I transform this into a proper date formatted as I want to (ie: “Jan 1, 2025”)?

$newDate = wp_date('F j, Y',strtotime($unixTimestamp));

I should’ve been more precise. I want to just format the custom field in the tag, I suspected there was something for it when adding the “date tag” or something like that. ( {{dc:post:meta key=“date-webinar”}} but with something else, any parameter or something)

Ok found the answer but is it documented anywhere? if so could someone please share the doc link?

the result is:

{{dc:post:meta key="custom-field-name" type="date" format="Y-m-d"}}

adding: type="date" format="Y-m-d" is the key here.

1 Like

More info on Dynamic Content formatting here. Have a great day.