title: Javascript date is invalid on iOS
body: <p>I'm working on a Phonegap-based iOS app, which is already done for Android. The following lines are working fine for Android but not for iOS. Why?</p>
  
  <pre><code>var d = new Date("2015-12-31 00:00:00");
  console.log(d.getDate() + '. ' + d.getMonth() + ' ' + d.getFullYear();
  </code></pre>
  
  <p>Result for Android:</p>
  
  <pre><code>31.11 2015
  </code></pre>
  
  <p>Result on iOS:</p>
  
  <pre><code>NaN. NaN NaN
  </code></pre>
  
  <p>Where is the difference coming from?</p>