title: converting dates into different format gives invalid date error in Angular
body: <p>I have a date which is like this <code>&quot;19/05/2020&quot;</code>. I am trying to convert it into <code>&quot;yyyy-MM-dd&quot;</code> format using pipe. So the date should be look like <code>&quot;2020-05-19&quot;</code>.</p>
  <pre><code>this._datePipe.transform(&quot;19/05/2020&quot;, 'yyyy-MM-dd');
  </code></pre>
  <p>It is giving me an error saying <code>Unable to convert &quot;19/04/2020&quot; into a date' for pipe 'DatePipe</code></p>
  <p>Also tried converting the string to date but again invalid date message is getting display.</p>
  <p>Is there any way so that we can convert this date that is  &quot;19/05/2020&quot; to a valid one so that we can perform datepipe on it.</p>