Cupara
Well-known member
I have this type of DateTime:
This is in UTC and I need to convert it to:
So far I have this in my template:
How do I get this to convert and display properly? Right now it displays as Jan 1, 1970, and I'm not sure how to convert it as it's pulled in the body of the JSON call.
Thanks
2020-10-13T22:39:00.711Z
This is in UTC and I need to convert it to:
Y-m-d i:s.u
So far I have this in my template:
HTML:
{{ date(date_from_format("Y-m-d\TH:i:s.u\Z", '{$posts.created_at}'), '') }}
How do I get this to convert and display properly? Right now it displays as Jan 1, 1970, and I'm not sure how to convert it as it's pulled in the body of the JSON call.
Thanks