title: Date conversion in UTC/ISO 8601 format
body: <p>I am working on date conversion.
  I am converting this <code>2017-08-17 13:00:00</code> format of date to <code>2017-08-17T13:00:00Z</code></p>
  
  <p>working example: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var from_date;
  var sdate = new Date( '2017-08-17 13:00:00' );
  var utcSDate = sdate.toISOString();
  from_date = utcSDate.replace('.000', '');
  console.log(from_date);</code></pre>
  </div>
  </div>
  </p>
  
  <p>But this code change time from <code>13:00:00</code> to <code>08:00:00</code>. Why this is happeining. Any idea ?
  OR someone give me an idea to convert date from my input to desired output as stated above. </p>