title: Comparing Dates in Delphi 7 using DateTimePicker components
body: <p>I am trying to dynamically assign a date to two <code>DateTimePicker</code> components, and then comparing the two.</p>
  
  <p>I have two conditions that I want to do here. In the first, I want to test if the date given to the component is the same as the current date. I do it like this:</p>
  
  <pre><code>if DateClosed.date = DateCurrent.date then 
   begin 
    //some code goes here
   end;
  </code></pre>
  
  <p>In the second instance I am trying to test if the date provided to <code>dateClosed</code> falls on or between two other dates that is also provided to two <code>DateTimePicker</code>.</p>
  
  <p>I am using Borland Delphi 7 Professional.</p>
  
  <p>Please try to keep answers as simple as possible, as I am fairly new to Delphi. </p>