title: Convert UTC time to yyyymmdd format Javascript
body: <p>I'm trying to convert a date object to UTC and then convert it to yyyymmdd format. 
  Here is my code</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 scheduleDate = '2016/10/29 17:00';
  var d = new Date(scheduleDate);
  var utcdate = d.toUTCString();
  
  var mm = utcdate.getUTCMonth() + 1;
  var dd = utcdate.getUTCDate();
  
  alert( [date.getUTCFullYear(), !mm[1] &amp;&amp; '0', mm, !dd[1] &amp;&amp; '0', dd].join(''));</code></pre>
  </div>
  </div>
  </p>
  
  <p>But I'm getting the below error:</p>
  
  <p><code>utcdate.getUTCMonth is not a function</code></p>
  
  <p>How can i get the month and date from a UTC string date format ?</p>