title: Angular formating yyyy-MM-dd HH:mm datetime string
body: <p>I am struggling with some datetime formating in angularJS.</p>
  
  <p>I would like to obtain the following date format <code>25/11/1990 14:35</code>
  based on a datetime <code>string</code> containing <code>"1990-11-25 14:35:00"</code> without having to create a <code>Date</code> object in the controller.</p>
  
  <p>It seems like angular can only achieve proper datetime formatting if the input is a <code>Date</code> object or if the <code>String</code> does not contain hours or minutes</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;div ng-app ng-controller="Ctrl"&gt;
     String: {{'1990-11-25 14:35:00' | date:"dd/MM/yyyy HH:mm"}}&lt;br&gt;
     string date: {{'1990-11-25' | date:"dd/MM/yyyy"}}&lt;br&gt;
     Date: {{myDate | date:"dd/MM/yyyy HH:mm"}}
  &lt;/div&gt;
  </code></pre>
  
  <p>controller.js</p>
  
  <pre><code>function Ctrl($scope)
  {
      $scope.myDate = new Date("1990-11-25 14:35:00");
  }
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>string: 1990-11-25 14:35:00 
  string date: 25/11/1990 
  date: 25/11/1990 14:35
  </code></pre>
  
  <p><a href="http://jsfiddle.net/CkBWL/612/" rel="nofollow">http://jsfiddle.net/CkBWL/612/</a></p>
  
  <p>According to <a href="https://docs.angularjs.org/api/ng/filter/date" rel="nofollow">angular's documentation on the date filter</a>, 
  the only format allowed for datetime string are:</p>
  
  <blockquote>
    <p>datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ</p>
  </blockquote>
  
  <p>Is there so a way to format a string containing <code>"1990-11-25 14:35:00"</code> into <code>25/11/1990 14:35</code> directly in the html without having to create a <code>Date</code> object ?</p>
  
  <p>Thanks for your help !</p>