# C1.Win.GanttView.DateRangeFilter.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_GanttView_DateRangeFilter__ctor_" data-uid="C1.Win.GanttView.DateRangeFilter.#ctor*">DateRangeFilter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_GanttView_DateRangeFilter__ctor_" data-uid="C1.Win.GanttView.DateRangeFilter.#ctor*"></a>
<h4 id="C1_Win_GanttView_DateRangeFilter__ctor_System_DateTime_System_DateTime_" data-uid="C1.Win.GanttView.DateRangeFilter.#ctor(System.DateTime,System.DateTime)">DateRangeFilter(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.Win.GanttView.DateRangeFilter.html">DateRangeFilter</a> object with start date and end date.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateRangeFilter(DateTime startRange, DateTime endRange)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(startRange As Date, endRange As Date)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">startRange</span></td>
      <td><p>The start date.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">endRange</span></td>
      <td><p>The end date.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
