Inexplicable Error date-time ionic6

I have this html code =>

 <ion-item class="input" lines="full">
              <ion-text>{{ birthDate.value }}</ion-text>
              <ion-button id="open-modal" fill="clear">
                <ion-icon name="calendar-outline" slot="icon-only"></ion-icon>
              <ion-modal trigger="open-modal">
                  <ion-datetime presentation="date" formControlName="birth_date">

but When I click on my modal I get this error =>

TypeError: Cannot destructure property 'month' of 'parseDate(...)' as it is undefined.
    at Datetime.valueChanged (ion-datetime_3.entry.js:1487:15)
    at index-06cd27b1.js:1534:29
    at (<anonymous>)
    at setValue (index-06cd27b1.js:1531:34)
    at HostElement.set [as value] (index-06cd27b1.js:1571:25)
    at SelectValueAccessorDirective.writeValue (ionic-angular.js:44:9)
    at onChange (forms.js:1734:1)
    at forms.js:2872:1
    at Array.forEach (<anonymous>)
    at FormControl.setValue (forms.js:2872:1)

I don’t know, where parseDate and month come from…

Do you have an idea please?.


looks like you are trying to access an undefined value, but i’m not sure about it

Obviously, but I don’t kknow why…

i guess it’s that formControlName=“birth_date”

I am having the same issue–did you find the solution?