title: Litepicker - automatically add the second date by selecting the first date
body: <p>I am using <a href="https://litepicker.com/" rel="nofollow noreferrer">https://litepicker.com/</a> and trying to create the variable dateString to have both dates based on the start date being given.</p>
  <p>Can anyone help me to see what I am doing wrong?</p>
  <pre><code>setup: (picker) =&gt; {
          picker.on('selected', (date1, endDate) =&gt; {
         endDate.setDate(date1.getDate() + 6);
          var dateString =   `${date1.format('D MMMM YYYY')} - ${endDate.format('D MMMM YYYY')}`;
          
          if (dateString == &quot;20 June 2021 - 26 June 2021&quot;) { 
  </code></pre>