title: How to compare the date entered by datetimepicker and current date
body: <p>I have datetimepicker tool that is used for employee birth date entry and I want to check if the user forget to enter the valid birth date and left the datetimepicker on the current date ,so he'll get an alert message.<br>
  I've tried to write this code in ValueChanged event but it didn't worked as I wished ... any help   </p>
  
  <pre><code>if (empRegBdatePicker.Value == DateTime.Today)
              {
                  MessageBox.Show("Please enter a valid birth date of an employee");
                  empRegBdatePicker.Focus();
              }
  </code></pre>