Skip Navigation

[Resolved] Format date in a table column

This support ticket is created 3 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by junev 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2206717
Screenshot 2021-10-27 at 11.07.33.png
Screenshot 2021-10-27 at 11.08.20.png

Tell us what you are trying to do?

I have a table in which I'd like to have a column showing a custom field with the field type "Date". But all it does in the table is show a string of numbers. Please see attached screenshot.

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-date

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

What is the link to your site?
hidden link

The shortcode for the table you see in hidden link looks like this:
[posts_table post_type="veranstaltung" columns="image:Bild,title:Veranstaltung,cf:wpcf-subheading:Typ,excerpt:Beschreibung,cf:wpcf-date:Datum" format="j. F Y" excerpt_length="20" widths="auto,150px,auto,auto,130px"]

Please advise,
June

#2207145

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi June,

Thank you for getting in touch.

Based on what i'm seeing here you're receiving the post data using the shortcode [posts_table] unfortunately it doesn't appear that this shortcode can format the date into a human readable format.

You may need to contact the developers of this shortcode for them to provide a solution for this given that you're using their shortcode.

Thanks,
Shane

#2207629

My issue is resolved now. Thank you!