title: Convert datetime to ISO format
body: <p>I have a date in format <code>dd.MM.yyyy HH:mm:ss</code> and I need to convert it to ISO format, but it's not working correctly.
  Here is my code:</p>
  
  <pre><code>let date = '12.01.2016 0:00:00'; //12 January 2016
  let parsedDate = moment(date, 'dd.MM.yyyy HH:mm:ss')
  console.log(parsedDate.toISOString()); //result is 2016-12-31T23:00:00.000Z
  </code></pre>
  
  <p>example2:</p>
  
  <pre><code>let date = '12.01.2016 0:00:00'; //12 January 2016
  let parsedDate = new Date(date)
  console.log(parsedDate.toISOString()); //result is 2016-11-30T23:00:00.000Z
  </code></pre>
  
  <p>Where is the problem? Why do I get different results?</p>