title: Converting mysql date to js date works in chrome but not safari
body: <p>I am using a pipe in angular2 to convert a mysql date to a js date format here is my code:</p>
  
  <pre><code>export class DateToIso {
      transform(value) {
          let date = new Date(value);
          let str = (date.getMonth() + 1) + '.' + date.getDate() + '.' +  date.getFullYear()
          return str;
      }
  }
  </code></pre>
  
  <p>In HTML I use
      <code>{{ post[2] | dateToIso}}</code>
  to show the converted date. In Chrome I get the correct datetime but not in safari. It returns <code>NaN.NaN.NaN</code>.</p>