title: Cannot destructure property 'month' of 'parseDate(...)' as it is undefined. undefined - Ionic Date Picker
body: <p>I have the following datepicker:</p>
  <pre><code>  &lt;ion-item&gt;
      &lt;ion-label&gt;Date&lt;/ion-label&gt;
      &lt;ion-input
        value=&quot;{{ date | date: 'dd-MMM-yyyy' }}&quot;
        id=&quot;date&quot;
        class=&quot;ion-text-end&quot;
        readonly=&quot;true&quot;
      &gt;&lt;/ion-input&gt;
      &lt;ion-popover trigger=&quot;date&quot; size=&quot;cover&quot;&gt;
        &lt;ng-template&gt;
          &lt;ion-datetime
            presentation=&quot;date&quot;
            [(ngModel)]=&quot;date&quot;
          &gt;&lt;/ion-datetime&gt;
        &lt;/ng-template&gt;
      &lt;/ion-popover&gt;
    &lt;/ion-item&gt;
  
  </code></pre>
  <pre><code>  async ngOnInit() {
      this.dateValue = parseISO(this.gblDbFunctions.getTimeStampMySqlFormat());
      // returns string in the format eg - 2022-04-28
  
    }
  
    get date(): any {
      return this.dateValue;
    }
  
    set date(value: any) {
      console.log(JSON.stringify(value));
      this.dateValue = value;
    }
  
  </code></pre>
  <p>As seen in the code I am trying to set todays date onInit() which populates the input correctly. However when I try to change the date and click on the input to open the picker I get the following error:</p>
  <pre><code>Line 2288 - Msg: TypeError: Cannot destructure property 'month' of 'parseDate(...)' as it is undefined. undefined
  Line 2288 - Msg: TypeError: Cannot read properties of undefined (reading 'month') [object HTMLElement]
  
  </code></pre>
  <p>I am wondering how to fix this?</p>
  <p>Thanks</p>