Skip Navigation

[Résolu] I need to remove the time from the date in views

This support ticket is created Il y a 5 années et 5 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 5 années et 5 mois.

Assisté par: Christian Cox.

Auteur
Publications
#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/