title: Datepicker: Adding dateFormat is giving an error
body: <p>I am testing picking a daterange using this example:
  <a href="http://salman-w.blogspot.no/2013/01/jquery-ui-datepicker-examples.html#example-7" rel="noreferrer">http://salman-w.blogspot.no/2013/01/jquery-ui-datepicker-examples.html#example-7</a></p>
  
  <p>I want to change the dateFormat, but adding that gives the following error in the console:
  "Uncaught Unexpected literal at position 2"</p>
  
  <p>I add one line (3rd line) for dateFormat like this:</p>
  
  <pre><code> $(function() {
     $("#datepicker").datepicker({
       dateFormat: "yy-mm-dd",
       beforeShowDay: function(date) {
         var date1 = $.datepicker.parseDate($.datepicker._defaults.dateFormat, $("#input1").val());
         var date2 = $.datepicker.parseDate($.datepicker._defaults.dateFormat, $("#input2").val());
         return [true, date1 &amp;&amp; ((date.getTime() == date1.getTime()) || (date2 &amp;&amp; date &gt;= date1 &amp;&amp; date &lt;= date2)) ? "dp-highlight" : ""];
      },
       onSelect: function(dateText, inst) {
         var date1 = $.datepicker.parseDate($.datepicker._defaults.dateFormat, $("#input1").val());
         var date2 = $.datepicker.parseDate($.datepicker._defaults.dateFormat, $("#input2").val());
         if (!date1 || date2) {
           $("#input1").val(dateText);
           $("#input2").val("");
           $(this).datepicker("option", "minDate", dateText);
         } else {
           $("#input2").val(dateText);
           $(this).datepicker("option", "minDate", null);
         }
       }
    });
  });
  </code></pre>
  
  <p>Or see jsfiddle for a example of the error:
  <a href="http://jsfiddle.net/jaaqs/" rel="noreferrer">http://jsfiddle.net/jaaqs/</a></p>
  
  <p>So, how can I change the dateFormat for this datepicker-range-example?</p>