Skip Navigation

[Resuelto] I need to remove the time from the date in views

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

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Christian Cox hace 5 años, 5 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1279045
capture2.jpg
capture1.jpg

I don't want the time in the date displayed. Please see my attached images where it is clear.
Thank you so much!

#1279069

Hello, is "fecha_de_entrada" a field created by Types? If so, then you should use the Types field shortcode to display the date without time.

[types field="fecha_de_entrada" format="Y-m-d"]

If the field is not created by Types, how is it created? What type of field is it? The wpv-post-field shortcode is not helpful for formatting values. It is only for displaying information directly from the database.

#1279081

No, it was created by ACF plugin (Advanced Custom Fields), as I need to have a signature field and it was not possible with Types. Could you see the screenshots I sent?

#1279083

Yes, thanks, I can see the screenshots. ACF dates are stored in the database using a different format, so Types field shortcodes can't really change the output easily. Custom code is required to format their date fields.

Another ticket here in the forum shows an example of such code:
https://toolset.com/forums/topic/output-acf-date-in-views/