# Inhaltstyp: Datumfeld leeren funktioniert nicht

**URL:** <https://forum.shopware.com/t/inhaltstyp-datumfeld-leeren-funktioniert-nicht/72881>\
**Category:** Allgemein\
**Created:** [18. Februar 2021 um 12:58 UTC](https://forum.shopware.com/t/inhaltstyp-datumfeld-leeren-funktioniert-nicht/72881 "2021-02-18T12:58:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![compragmbh](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@compragmbh](https://forum.shopware.com/u/compragmbh)\
**Post date:** [18. Februar 2021 um 12:58 UTC](https://forum.shopware.com/t/inhaltstyp-datumfeld-leeren-funktioniert-nicht/72881/1 "2021-02-18T12:58:43Z")

</div>

Hallo Zusammen,

Wir haben bei einem Kunden im Shop einen neuen Inhaltstyp angelegt.  
Unter anderem mit einem Datumsfeld, welches NICHT als Pflichtfeld definiert ist.

Allerdings kann das Feld nicht geleert bzw. zurückgesetzt werden. D.h. wenn ein Eintrag dieses Inhaltstyp mit ausgefülltem Datumfeld erstellt wird und man den Eintrag später nochmal bearbeiten möchte, kann man das ausgewählte Datum nicht mehr leeren, falls man kein Datum merh angeben möchte. Und das obwohl das Feld KEIN Pflichtfeld ist. Es wird dann immer der vorherige Wert gespeichert.

&nbsp;

Jemand eine Idee?

Viele Grüße  
Dennis

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [18. Februar 2021 um 13:09 UTC](https://forum.shopware.com/t/inhaltstyp-datumfeld-leeren-funktioniert-nicht/72881/2 "2021-02-18T13:09:19Z")

</div>

[MySQL :: MySQL 8.0 Reference Manual :: 11.2 Date and Time Data Types](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-types.html)&nbsp;

```
MySQL permits you to store a “zero” value of '0000-00-00' as a “dummy date.” In some cases, this is more convenient than using NULL values, and uses less data and index space. To disallow '0000-00-00', enable the NO_ZERO_DATE mode.

```

&nbsp;
