title: set default date air-datepicker
body: <p>I am using <a href="http://t1m0n.name/air-datepicker/docs/" rel="nofollow noreferrer">air-datepicker inline</a>.</p>
  
  <p>I need to set the start date for it.</p>
  
  <p>Here is the script and how I am trying to do it.</p>
  
  <pre><code>export function load_datepickers_inline():void {
  const search_legs_0_datepicker = $("#search_legs_0_datepicker");
  const leg_0_datepicker = $("#search_legs_0_datepicker").datepicker({
    language: gon.locale,
    classes: 'inline-picker',
    selectOtherMonths: true,
    showOtherMonths: true,
    changeMonth: true,
    changeYear:true,
    altField: '#search_legs_0_date',
    selectDate: new Date(search_legs_0_datepicker.attr("data-defaultDate")),
    minDate: new Date(search_legs_0_datepicker.attr('data-mindate')),
    maxDate: new Date(search_legs_0_datepicker.attr('data-maxdate')),
    altFormat: 'yy-mm-dd',
    onSelect: (dateText, inst) =&gt; {
      const date = new Date(dateText);
      if (!leg_0_datepicker) { return false; }
      leg_1_datepicker.datepicker("option", "minDate", date);
      if ($("#search_legs_0_hotel_date").length &gt; 0) {
        $('#search_legs_0_hotel_date').datepicker().data('datepicker').update('minDate', date);
        $('#search_legs_0_hotel_date').datepicker().data('datepicker').datepicker("setDate", date);
        $('#search_legs_1_hotel_date').datepicker().data('datepicker').update('minDate', date);
      }
    }
  })
  
  const search_legs_1_datepicker = $("#search_legs_1_datepicker");
  var leg_1_datepicker = $("#search_legs_1_datepicker").datepicker({
    selectOtherMonths: true,
    showOtherMonths: true,
    language: gon.locale,
    changeMonth: true,
    changeYear:true,
    classes: 'inline-picker',
    altField: '#search_legs_1_date',
    selectDate: new Date(search_legs_1_datepicker.attr("data-defaultDate")),
    minDate: new Date(search_legs_1_datepicker.attr('data-mindate')),
    maxDate: new Date(search_legs_1_datepicker.attr('data-maxdate')),
    altFormat: 'yy-mm-dd',
    onSelect: (formattedDate, date, inst) =&gt; {
      if ($("#search_legs_1_hotel_date").length &gt; 0) {
        $('#search_legs_0_hotel_date').datepicker().data('datepicker').update('maxDate', date);
        $('#search_legs_1_hotel_date').datepicker().data('datepicker').update('maxDate', date);
        $('#search_legs_1_hotel_date').datepicker().data('datepicker').datepicker("setDate", date);
      }
    }
  })
  </code></pre>
  
  <p>All is okay, but default date is not hidhlighted. Do I need to set it?</p>
  
  <p>Thank's for help.</p>