title: Format datetime in TypeScript
body: <p>I'm receiving date and time from the REST API in the below format </p>
  
  <pre><code>2016-01-17T:08:44:29+0100
  </code></pre>
  
  <p>I want to format this date and time stamp like</p>
  
  <pre><code>17-01-2016 08:44:29
  </code></pre>
  
  <p>It should be dd/mm/yyyy hh:mm:ss</p>
  
  <p>How to format this in TypeScript? </p>