Date Format UTC

Hi ,
i am using WooEvents to display Events on WC. So far so good.

Now i want to display the WC-Products with a looper, but the date format is wrong,
It shows the UTC:
1748654100 – 1748691000
when I use {{dc:post:meta key=“we_startdate”}} – {{dc:post:meta key=“we_enddate”}}

with
{{dc:post:meta key=“we_startdate” type=“date” format=“d. M Y”}} – {{dc:post:meta key=“we_enddate”}}
it shows the globe date, today…?

How can is realize this?

Thanks and
kind regards,
Christian

Hi Christian,

Thanks for reaching out.
If the values is correctly added into the the meta field, the {{dc:post:meta key=“we_startdate” type=“date” format=“d. M Y”}} should work. To check that, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific page or layout where you have used it.

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Tristup,
thanks for writing back so fast :wink:
I provided the login credentials for you to take a closer look…thanks!

kind regards,
christian

Hi Christian,

Unfortunately, the given credentials are not working. Can you please check and send it once again ?

Thanks

…its working now…forgot to save :wink:

Hello @cyrock,

I would suggest you please add this code to convert the post meta value to a date format.

{{ {{dc:post:meta key="we_startdate"}}  | date('j. m. Y') }}
-
{{ {{dc:post:meta key="we_enddate"}}  | date('j. m. Y') }}

OR

{{ post.meta({ "key": "we_startdate"})|date('j. m. Y') }}
-

{{ post.meta({ "key": "we_enddate"})|date('j. m. Y') }}

Please feel free to change the date format to match your design.

Hope it helps
Thanks

Dear Prakash,
thanks for helping me out so good. This is another key or cornerstone to work independently and good with the meta datas!

THANKS!!!

Kind regards,
Christian

Hi Christian,

Glad that we are able to help you.

Thanks