title: Angular converting string to date error invalid
body: <p>I am getting a date in the form of string date: '2022-07-15T09:29:24.958922Z[GMT]', When I convert it in to date then I get error invalid date. Does someone know how to solve it?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   const myDate = response; // '2022-07-15T09:29:24.958922Z[GMT]'
     this.transactionDate = new Date(myDate);</code></pre>
  </div>
  </div>
  </p>