# Frage zu Array-Variablen

**URL:** <https://forum.shopware.com/t/frage-zu-array-variablen/89464>\
**Category:** Shopware 6 (German)\
**Created:** [28. Juli 2021 um 18:56 UTC](https://forum.shopware.com/t/frage-zu-array-variablen/89464 "2021-07-28T18:56:58Z")\
**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:** [28. Juli 2021 um 18:56 UTC](https://forum.shopware.com/t/frage-zu-array-variablen/89464/1 "2021-07-28T18:56:58Z")

</div>

Hallo,

mal eine Frage an die Forumsgemeinde.  
Wie lautet denn in SW6 die aktuelle System-Jahreszahl, vierstellig…? In SW5 war das `{$smarty.now|date_format:"%Y"}`

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [28. Juli 2021 um 19:54 UTC](https://forum.shopware.com/t/frage-zu-array-variablen/89464/2 "2021-07-28T19:54:04Z")

</div>

Hallo,

beispielsweise über [twig date current year - Google Search](https://www.google.de/search?q=twig+date+current+year) wäre das Ergebnis: `{{ 'now' | date('Y') }} `.

Grüße  
Sebastian

---

<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:** [29. Juli 2021 um 11:47 UTC](https://forum.shopware.com/t/frage-zu-array-variablen/89464/3 "2021-07-29T11:47:21Z")

</div>

> [@sschreier](#):
>
> beispielsweise über [twig date current year - Google Search](https://www.google.de/search?q=twig+date+current+year) wäre das Ergebnis: `{{ 'now' | date('Y') }} ` .
> 
> Grüße  
> Sebastian

Hallo Sebastian.  
Danke für Deine Hilfe. Perfekt 👍
