title: jquery-dateFormat format function returns "undefined.undefined"
body: <p>I'm trying to format some dates using phstc's jquery-dateFormat library (1.0).
  The problem I'm facing is that for some reason it adds "undefined.undefined" to the formatted Date, as shown in picture when I'm evaluating the variable.</p>
  
  <p>Can someone point me to what is happening here?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>var startDate = '@Model.StartDate';
  var endDate = '@Model.EndDate';
  var format = 'dd.MM.yyyy';
  var temp1 = $.format.date(startDate, format);
  var temp2 = $.format.date(endDate, format);
  $("#startDatePicker").datepicker("setDate", temp1);
  $("#endDatePicker").datepicker("setDate", temp2);
  </code></pre>
  
  <p><strong>Result: "undefined.undefined.04.12.2019"</strong></p>
  
  <p><a href="https://i.stack.imgur.com/paDis.png" rel="nofollow noreferrer">jquery-dateFormat example</a></p>
  
  <p><a href="https://i.stack.imgur.com/7uk1o.png" rel="nofollow noreferrer">jquery UI attempt</a></p>