title: How to format "2021-01-19T12:50:00Z" to: 2021-01-19 12:50:00
body: <p>I am using angular and rxjs.</p>
  <p>So I have this:</p>
  <pre><code>  x: console.log(res.map(date =&gt; date.dt))
  </code></pre>
  <p>And it returns this:</p>
  <pre><code>0: &quot;2021-01-19T12:50:00Z&quot;
  1: &quot;2021-01-19T12:51:00Z&quot;
  2: &quot;2021-01-19T12:52:00Z&quot;
  3: &quot;2021-01-19T12:53:00Z&quot;
  4: &quot;2021-01-19T12:54:00Z&quot;
  5: &quot;2021-01-19T12:55:00Z&quot;
  6: &quot;2021-01-19T12:56:00Z&quot;
  7: &quot;2021-01-19T12:57:00Z&quot;
  8: &quot;2021-01-19T12:59:00Z&quot;
  </code></pre>
  <p>But of course that is not readable.</p>
  <p>SO I want to convert it to for example this:  '2021-01-19 12:50:00',</p>
  <p>So: yyyy-MM-dd HH-MM-SS</p>
  <p>But so what I have to change?</p>
  <p>Thank you</p>