# Datumsberechnung im EmailBuilder

**URL:** <https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594>\
**Category:** EmailBuilder\
**Created:** [4. Juli 2025 um 11:54 UTC](https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594 "2025-07-04T11:54:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecomsilio-sh](https://www.plenty.community/user_avatar/www.plenty.community/ecomsilio-sh/32/74_2.png) [@ecomsilio-sh](https://www.plenty.community/u/ecomsilio-sh)\
**Post date:** [4. Juli 2025 um 11:54 UTC](https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594/1 "2025-07-04T11:54:28Z")

</div>

Hallo,

kann mir jemand weiterhelfen, wie ich ein Datum berechne: heutiges Datum plus 7 Tage.

im Text-Widget habe ich " {{ globals.today | date(‚d.m.Y‘) + 7 }} ". Ergebnis ist aber nur 11.07, das Jahr und der Punkt davor fehlen.

im Code-Widget

{% set Datum = globals.today %}  
{% set Tage = 7 %}  
{% set Zahlung = (Datum + Tage) | date(‚d.m.Y‘) %}

Hier ist das Ergebnis 4.7.2025

die Variablen müssen sicher noch korrekt formatiert werden, damit die Berechnung klappt. Habe einiges probiert, aber nicht das richtige gefunden.

Gruß

Steffi

PS. die einfachen Anführungszeichen werden hier falsch dargestellt. sind alle oben.

---

<div class="post-metadata">

**Author:** ![philemon-modeherz](https://www.plenty.community/letter_avatar_proxy/v4/letter/p/43a26b/32.png) [@philemon-modeherz](https://www.plenty.community/u/philemon-modeherz)\
**Post date:** [4. Juli 2025 um 12:13 UTC](https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594/2 "2025-07-04T12:13:47Z")

</div>

Schau dir mal `date_modify` und `format_date` an:

> **[date\_modify - Filters - Documentation - Twig PHP](https://twig.symfony.com/doc/3.x/filters/date_modify.html)**
>
> Twig - The flexible, fast, and secure template engine for PHP

> **[format\_date - Filters - Documentation - Twig PHP](https://twig.symfony.com/doc/3.x/filters/format_date.html)**
>
> Twig - The flexible, fast, and secure template engine for PHP

Ich denke damit sollte man es hinbekommen.

---

<div class="post-metadata">

**Author:** ![ecomsilio-sh](https://www.plenty.community/user_avatar/www.plenty.community/ecomsilio-sh/32/74_2.png) [@ecomsilio-sh](https://www.plenty.community/u/ecomsilio-sh)\
**Post date:** [4. Juli 2025 um 12:29 UTC](https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594/3 "2025-07-04T12:29:02Z")

</div>

perfekt. Vielen Dank!!

Damit geht es: {{ „now“ | date\_modify(„+7 day“) | date(„d.m.Y“) }}

(doppelte Anführungszeichen alle oben)

PS  
`{{ "now" | date_modify("+7 day") | date("d.m.Y") }}`

---

<div class="post-metadata">

**Author:** ![jackel-samenhaus](https://www.plenty.community/user_avatar/www.plenty.community/jackel-samenhaus/32/188_2.png) [@jackel-samenhaus](https://www.plenty.community/u/jackel-samenhaus)\
**Post date:** [4. Juli 2025 um 14:45 UTC](https://www.plenty.community/t/datumsberechnung-im-emailbuilder/594/4 "2025-07-04T14:45:00Z")

</div>

> [@ecomsilio-sh](#):
>
> Anführungszeichen

Accent-Zeichen um den Code rum wickeln hilft 😉  
Bzw: markieren und diesen Knopf drücken:

![2025-07-04 10_44_10-Window](https://www.plenty.community/uploads/default/original/1X/4e2e179396158c88f2811dc8e364bbd00000388f.png)
