title: Full Calendar Get current date
body: <p>I've been learning Ruby over the last year and I'm very new to JS so I'll try to explain this as best I can.</p>
  
  <p>I am using <a href="http://fullcalendar.io/" rel="nofollow noreferrer">Adam Shaw's full calendar plugin</a>. All I want to do is get the current month I am viewing (and use that to limit how far in the future or past a user can navigate, but that's not the problem).</p>
  
  <p>I can get the current date, sort of. But, because of my lack of JS knowledge I'm not sure how to access the date. </p>
  
  <p>Here is the relevant section of the config file,</p>
  
  <pre><code>viewRender: function(view){
    var maxDate = "&lt;%= finish.strftime('%Y/%m/%d') %&gt;";
    var currentDate = $('#calendar').fullCalendar('getDate');
    console.log(currentDate);
    if (view.start &gt; maxDate){
      header.disableButton('prev');
  
    }
  }
  </code></pre>
  
  <p>When I inspect the console log I see this being output as I click through the months.</p>
  
  <p><img src="https://i.stack.imgur.com/5ftGG.png" alt="console log"></p>
  
  <p>So as you can see it is displaying the current date in view. My question is how do I access the <code>_d</code> bit of the <code>Moment</code> variable so I can use it?</p>
  
  <p>My understanding would be that the Moment is class instance and the stuff in the dropdown is like its attributes, would this be a correct interpretation?</p>