How do I format the date/time of a Google Calendar Entry so that it looks readable?

I tried

service: notify.pushover
data:
  message: >-
    Event {{ trigger.calendar_event.summary }} {{trigger.calendar_event.start }}

and that worked but the event time gets output in a hardly readable way:
2023-09-06T14:01:00+02:00
but I’d rather like:
06.09.2023, 14:01
how do i change that?

{{ (trigger.calendar_event.start | as_datetime).strftime('%d.%m.%Y, %H:%M') }}

ty a lot but it doesn’t work for some reason

How does it appear in the Pushover message?

hi, nevermind
does work
incredible code

1 Like

Glad to hear it works.

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.

For more information about the Solution tag, refer to guideline 21 in the FAQ.