title: How to exclude date in RRule.js?
body: <p><strong>Suspected code:</strong></p>
  <pre><code>&lt;script src=&quot;https://jakubroztocil.github.io/rrule/dist/es5/rrule.min.js&quot;&gt;&lt;/script&gt;
  // Create a rule:
          const rule = new rrule.RRule({
              freq: rrule.RRule.DAILY,
              dtstart: new Date('{{ date('Y-m-d', strtotime($product-&gt;details-&gt;date_from . ' -1 day'))}}'),
              until: new Date('{{$product-&gt;details-&gt;date_to_1 ? date('Y-m-d', strtotime($product-&gt;details-&gt;date_to_1 . ' +1 day'))  : date('Y-m-d', strtotime($product-&gt;details-&gt;date_to . ' +1 day'))}}'),
          });
  
          rule.exdate(new Date(&quot;2020-06-25&quot;));
  </code></pre>
  <p><strong>Console got that:</strong></p>
  <pre><code>TypeError: rule.exdate is not a function
  </code></pre>
  <p>But if we follow the official guide <a href="https://github.com/jakubroztocil/rrule" rel="nofollow noreferrer">RRule repo manual</a></p>
  <p><strong>We can observe the solution as :)</strong></p>
  <blockquote>
  <pre><code>// Add a exclusion date to rruleSet
  rruleSet.exdate(new Date(Date.UTC(2012, 5, 1, 10, 30)))
  </code></pre>
  </blockquote>
  <p>I'm unable to figured it out where am i wrong ?</p>
  <p>Thanks in advance.</p>
  <p>Regards,<br>
  <strong>Aizaz</strong></p>