Counting days

Hello everyone,

I try to put something in my agenda via an automation over a period of 14 days. The start date succeeded, but how should I set the end date, so start date + 14? I’m experimenting with google calendar but not everything works. Can someone help me?
Thanks in advance.

My approach would be to add 14*86400 to the timestamp in seconds. However, it is hard to help you because you haven’t provided an example of what you are trying to do. Are you calling a service? What service? Where does the start date come from?

Maybe the general documentation about time and date manipulation in templates would help you.

Thanks for your response, but already solved it!

              description: Tester voor Kalender3
              start_date: '{{now().strftime(''%Y-%m-%d'')}}'
              end_date: {{(now() +timedelta(7)).strftime("%Y-%m-%d")}}