c# Select sql database data using datetimepicker set with date range
<p>I am trying to make c# program, where I have to make a database report to be previewed at the datagridview. Data will be selected using the datetimepicker. I have written the code, it works but then if the date selected is of different months. No records appear</p>
<pre><code>void FilterDBbtnClick(object sender, EventArgs e)
{
        MySqlConnection conn = new MySqlConnection();
    
        conn = new MySqlConnection(cs);
        
        string data = &quot;SELECT `Date`, `Process`, `Actual`, `Target` FROM `database` WHERE `Date` BETWEEN '&quot;+this.fromDatePicker.Value+&quot;' AND  '&quot;+this.toDatePicker.Value+&quot;' order by `Date` desc&quot;;
        

        MySqlCommand cmd = new MySqlCommand(data, conn);
        
        
        cmd.Connection.Open();
            
        try
        {
            
          MySqlDataAdapter sda = new MySqlDataAdapter();
          sda.SelectCommand = cmd;          
          DataSet dt = new DataSet();
          sda.Fill(dt);
          BindingSource bsource = new BindingSource();
          bsource.DataSource = dt;
          mondeDataTable.DataSource = dt.Tables[0];
          sda.Update(dt);
        
        }
        
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
        
        
        cmd.Connection.Close();
}
</code></pre>
<p>please help me check my code and tell me what might be wrong or missing.</p>