title: Define date parameters
body: <p>I'm very new to creating custom reports. I need to prompt a begin date and an end date to the user in the crm, so that the result would be datas only created between those two dates. </p>
  
  <p>I have three parameters to prefilter my datas (account, incident, contract) and added two date parameters in Visual Studio.                  </p>
  
  <p>But now I'm pretty much stuck...</p>
  
  <p>Any help would be great!</p>
  
  <p>Edit 1: Here is a snippet of my query FETCH Xml-based:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;&lt;fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"&gt;
         &lt;entity name="incident" enableprefiltering="1"&gt;
         &lt;attribute name="overriddencreatedon"/&gt;
        &lt;attribute name="new_dateclotureincident"/&gt;
        &lt;attribute name="title"/&gt;&lt;attribute name="createdon"/&gt;
        &lt;attribute name="new_travaileffectue"/&gt;
        &lt;attribute name="ticketnumber" /&gt;
        &lt;attribute name="new_dureecumuleeactivites"/&gt;
        &lt;order descending="true" attribute="createdon"/&gt;
        &lt;filter type="and"&gt; 
        &lt;condition attribute="createdon" value="@Date-Debut" operator="on-or-after"/&gt; 
        &lt;condition attribute="createdon" value="@Date_Fin" operator="on-or-before"/&gt; 
        &lt;/filter&gt;
        &lt;link-entity name="new_contrats" alias="aa" to="new_contrat" from="new_contratsid" enableprefiltering="1"&gt;
      &lt;attribute name="new_referencecontrat"/&gt;
      &lt;/link-entity&gt;
      &lt;link-entity name="new_lignecontrat" alias="ab" to="new_lignecontrat" from="new_lignecontratid"&gt;
      &lt;attribute name="new_unitesrestantes"/&gt;&lt;attribute name="new_unitesrestantes"/&gt;
      &lt;/link-entity&gt;
      &lt;link-entity name="account" alias="ac" to="customerid" from="accountid" enableprefiltering="1"&gt;&lt;attribute name="name"/&gt;
      &lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;
  </code></pre>
  
  <p>The dates are prompted without problem at the execution of the report but the datas are not sorted correctly after I pick them. I've just created two simple date parameters so what am I doing wrong? </p>