title: Can't get YouTube video time format to change
body: <p>I have written a js file that pulls info using YouTube API v3. I've tried many methods to get the time to change but nothing works. Can someone explain to me how to get it to change to- month/date/year?</p>
  
  <p>Thank you.</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 channelName = '2kolf';
  var vidWidth = 166;
  var vidHeight = 86;
  var vidResults = 4;
  
  $ (document).ready(function() {
   $.get(
    "https://www.googleapis.com/youtube/v3/channels",{
     part: 'contentDetails',
     forUsername: channelName,
     key: ''},
        function(data) {
      $.each(data.items, function(i, item) {
       console.log(item);
       pid = item.contentDetails.relatedPlaylists.uploads;
       getVids(pid);
      })
     }
   );
  
   function getVids(pid){
    $.get(
    "https://www.googleapis.com/youtube/v3/playlistItems",{
     part: 'snippet',
     maxResults: vidResults,
     playlistId: pid,
     key: ''},
     function(data) {
      var output;
      $.each(data.items, function(i, item) {
       console.log(item);
                      videoTitle = item.snippet.title.replace("Season 8 - ", "");
       videoId = item.snippet.resourceId.videoId;
       videoThumbnails = item.snippet.thumbnails.medium.url;
       videoPublished = item.snippet.publishedAt;//This is to show the date published//
       videoAuthor = item.snippet.channelTitle.replace("2kOLF", "2K Online Franchise");
       videoStats = item.snippet.statistics;
            
  output = '&lt;li class="YouTubeVideos"&gt;&lt;a class="various fancybox.iframe" title="'+videoTitle+'" href=\"//www.youtube.com/embed/'+videoId+'\?fs=1&amp;autoplay=1"&gt;&lt;img height="'+vidHeight+'" width="'+vidWidth+'" src='+videoThumbnails+' &gt;&lt;/a&gt;&lt;br&gt;&lt;p&gt;'+videoTitle+'&lt;/p&gt;&lt;br&gt;&lt;span style="font-weight: normal;"&gt;by '+videoAuthor+'&lt;br&gt;'+videoPublished+'&lt;/span&gt;&lt;/li&gt;';
       
       //Append to results listStyleType
       $('#results').append(output);
      })
     }
   );
   }
  });</code></pre>
  </div>
  </div>
  </p>