# Variable Jahreszahl automatisch ändern

**URL:** <https://forum.shopware.com/t/variable-jahreszahl-automatisch-andern/24932>\
**Category:** Shopware 3.5\
**Tags:** administration\
**Created:** [5. Februar 2015 um 17:39 UTC](https://forum.shopware.com/t/variable-jahreszahl-automatisch-andern/24932 "2015-02-05T17:39:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Z3PP](https://avatars.discourse-cdn.com/v4/letter/z/919ad9/32.png) [@Z3PP](https://forum.shopware.com/u/Z3PP)\
**Post date:** [5. Februar 2015 um 17:39 UTC](https://forum.shopware.com/t/variable-jahreszahl-automatisch-andern/24932/1 "2015-02-05T17:39:25Z")

</div>

Hallo, irgendwie ist es zum Mäuse melken. Weiß von Euch jemand, was man als Variable in die Textbausteine eintragen muß, damit sich eine vierstellige Jahreszahl (kein komplettes Datum) automatisch immer ändert auf die aktuelle Jahreszahl? Habe schon zig Varianten ausprobiert, funktioniert aber nicht so richtig. Gruße,

---

<div class="post-metadata">

**Author:** ![Creatixx](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Creatixx](https://forum.shopware.com/u/Creatixx)\
**Post date:** [5. Februar 2015 um 17:57 UTC](https://forum.shopware.com/t/variable-jahreszahl-automatisch-andern/24932/2 "2015-02-05T17:57:10Z")

</div>

Suchst du das? `{$smarty.now|date\_format:"%Y"}` Gruß

---

<div class="post-metadata">

**Author:** ![Z3PP](https://avatars.discourse-cdn.com/v4/letter/z/919ad9/32.png) [@Z3PP](https://forum.shopware.com/u/Z3PP)\
**Post date:** [5. Februar 2015 um 18:32 UTC](https://forum.shopware.com/t/variable-jahreszahl-automatisch-andern/24932/3 "2015-02-05T18:32:13Z")

</div>

Ja, Danke. Perfekt :thumbup:
