title: Why New Date() is always return null?
body: <p>If a date format is <code>$scope.timestamp =  '2016-12-16 07:02:15 am'</code></p>
  
  <p>I want to format to <code>16/12/2016 07:02:15 am</code> </p>
  
  <p>I have tried this below code and it's working good </p>
  
  <pre><code>$scope.originalStamp = $filter('date')
                            (new Date($scope.timestamp.replace("-","/")),'dd-MM-yyyy HH:mm:ss a');
  </code></pre>
  
  <blockquote>
    <p>But my question is why <code>new Date($scope.timestamp)</code> is always return <code>null</code> if am not use replace the char from (-) to (/)?</p>
  </blockquote>
  
  <p>see the below code is not working if am without using <code>replace().</code> </p>
  
  <pre><code>$scope.originalStamp = $filter('date')
                                (new Date($scope.timestamp),'dd-MM-yyyy HH:mm:ss a');
  </code></pre>
  
  <blockquote>
    <p>Why the <code>new Date()</code> does not accept if the date format having (-)? Is new Date() conversion is depend by my system date format?</p>
  </blockquote>