Skip Navigation

[Resuelto] How to format date from custom field?

This support ticket is created hace 5 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por bastienB hace 5 años, 2 meses.

Autor
Mensajes
#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? enlace oculto

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: enlace oculto

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!