title: Using an jQuery Array instead of a string as a parameter for MultiDatesPicker for jQueryUI
body: <p>I'm using MultiDatesPicker v1.6.3 for jQuery UI (<a href="http://multidatespickr.sourceforge.net/" rel="nofollow">http://multidatespickr.sourceforge.net/</a>) to display a clickable calendar.</p>
  
  <p>I want to use the addDates method to add pre selected dates to the calendar. like this - <a href="http://multidatespickr.sourceforge.net/#pre-select-dates-demo" rel="nofollow">http://multidatespickr.sourceforge.net/#pre-select-dates-demo</a></p>
  
  <p>The documentation states that </p>
  
  <blockquote>
    <p>The parameter dates can be a string, a date object or an array (of strings or javascript date objects).</p>
  </blockquote>
  
  <p>I want to add dates from an array I've created like this</p>
  
  <pre><code>var somedates = ['3-3-2015', '4-3-2015', '5-3-2015'];
  </code></pre>
  
  <p>But I can't work out how to use the array with the option.  It works if I use a sting with the option like</p>
  
  <pre><code>addDates: ['3-3-2015', '4-3-2015', '5-3-2015']
  </code></pre>
  
  <p>But how do I use the array?</p>
  
  <p>Sorry if my terminology is poor!</p>