# \[GELÖST\] Abfrage des Geburtsdatum unter Shopware Version 5.2.0?

**URL:** <https://forum.shopware.com/t/gelost-abfrage-des-geburtsdatum-unter-shopware-version-5-2-0/37412>\
**Category:** Programmierung\
**Created:** [13. Juni 2016 um 09:23 UTC](https://forum.shopware.com/t/gelost-abfrage-des-geburtsdatum-unter-shopware-version-5-2-0/37412 "2016-06-13T09:23:30Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [13. Juni 2016 um 09:23 UTC](https://forum.shopware.com/t/gelost-abfrage-des-geburtsdatum-unter-shopware-version-5-2-0/37412/1 "2016-06-13T09:23:30Z")

</div>

Hallo liebe shopware - Gemeinde,

ich habe folgendes Anliegen:

Bei den Versionen unterhalb von Shopware Version 5.2.0 konnte man ja immer über:

```
$birthday = $customer->getBilling()->getBirthday();

```

das Geburtsdatum abfragen.

Unter Shopware Version 5.2.0 wurde diese Funktion leider aus dem Model Billing.php entfernt. Wie kommt man nun an das Geburtsdatum des Kunden heran? Ich habe noch keinen wirklichen Ansatz gefunden, auch nicht in der neuen Adressverwaltung. Hat jemand eine Idee?

**Edit: es müsste nun so möglich sein:**

```
$birthday = $customer->getBirthday();

```

Beste Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [13. Juni 2016 um 09:39 UTC](https://forum.shopware.com/t/gelost-abfrage-des-geburtsdatum-unter-shopware-version-5-2-0/37412/2 "2016-06-13T09:39:14Z")

</div>

Das Geburtsdatum ist nicht mehr Teil der Adressdaten, sondern Bestandteil der Kunden-Stammdaten - siehe&nbsp;[shopware/Customer.php at 5.2 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.2/engine/Shopware/Models/Customer/Customer.php#L305)

Viele Grüße

---

<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:** [13. Juni 2016 um 09:55 UTC](https://forum.shopware.com/t/gelost-abfrage-des-geburtsdatum-unter-shopware-version-5-2-0/37412/3 "2016-06-13T09:55:23Z")

</div>

> [@Aquatuning GmbH schrieb:](https://forum.shopware.com/profile/11752/Aquatuning%20GmbH "Aquatuning%20GmbH")
> 
> Das Geburtsdatum ist nicht mehr Teil der Adressdaten, sondern Bestandteil der Kunden-Stammdaten - siehe&nbsp;[https://github.com/shopware/shopware/blob/5.2/engine/Shopware/Models/Customer/Customer.php#L305](https://github.com/shopware/shopware/blob/5.2/engine/Shopware/Models/Customer/Customer.php#L305)
> 
> Viele Grüße

Hallo Aquatuning,

ich habs dann doch gefunden, ich hatte die alte Customer.php geöffnet anstatt die neue ![Angry-Face](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/4d894c4dd47121f4ab1fba0317660ce0f6dbd4be.png "Angry-Face"). Dank dir trotzdem. Somit ist ja der Zugriff über

```
$customer->getBirthday();

```

nun möglich oder?

Beste Grüße

Sebastian
