title: Setting the calendar value using viewDate function in Tempus Dominus
body: <p>What I am trying to do is set the month and year from an event calendar to Tempus Dominus datepicker. So on the main page is a big calendar, the user may change the month from November to December, and the create a new event in December.</p>
  
  <p>Once the user clicks the button to enter a new event, I want to set the datepicker to that month. Per the docs on the page I access the functions with:</p>
  
  <pre><code>$('#datetimepicker').datetimepicker(FUNCTION)
  </code></pre>
  
  <p>To set the <code>viewDate</code> I need to put the date in <code>()</code> <code>viewDate('11/21/2018')</code>
  putting it together (I have tried a few different ways it should look something like:</p>
  
  <pre><code>$('#datetimepicker').datetimepicker(viewDate('11/21/2018'))
  </code></pre>
  
  <p>I have put <code>viewDate</code> in single quotes, tried <code>viewDate:</code> and a few others, with no luck. I currently have it wired to a button and hard coded the date like above for testing. </p>
  
  <p>What is it that I am not understanding or doing wrong.</p>