Skip Navigation

[Resolved] How to format date from custom field?

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by bastienB 5 years, 2 months ago.

Author
Posts
#1340265

Tell us what you are trying to do? Display a date in the format MM.DD.YYYY

Is there any documentation that you are following? Tried to find in your documentation but no solution.

Is there a similar example that we can see? hidden link

What is the link to your site? In the example above, you can see below the "Buy Now" button a "Valid Until xx.xx.xxx" text.

Here's the link to the actual CPT archive: hidden link

As you can see the date is displayed as a simple string "15710976000". How can we properly format it to our liking?

#1340283

I was actually pulling the Field value... Instead I used the detected "Expiration Date" field and Toolset allowed me to format the date.

My issue is resolved now. Thank you!