I want to format the custom field _EventStartDate from The Events Calendar plugin. When I use [wpv-post-field name='_EventStartDate'] in the code of my view I get the full date and time. But I only want to show the year and month.
I read this post: https://toolset.com/forums/topic/custom-field-of-type-date-appear-strange/
and tried [types field='_EventStartDate' format='M'][/types] to get the month, but I get nothing.
Can you help me out?
Luo Yang
Supporter
Languages:
English (English )
Chinese (Simplified) (简体中文 )
Timezone:
Asia/Hong_Kong (GMT+08:00)
Dear marijke,
The solution you mentioned above is for custom date field created with Types plugin, in your case the field is created by other plugin (The Events Calendar), please try the solution of another thread:
https://toolset.com/forums/topic/date-formating-on-another-cpts-date-field/#post-268972
Thank you Luo,
that was the trick. I am sorry I did not find this solution myself.