title: Timespan in an if else statement
body: <p>I have the following code, and I am planning to use it to check if the user has placed a correct number of days between two <code>datetimepickers</code>.
  I've searched on google, and some posts say use <code>var</code>, some say <code>parse</code>, and still it wont work, the message box won't pop up upon checking.</p>
  
  <p>I have already made it work by using a label as a container of the result and use an if else statement to check if the text is equal to 14,15 or 16. It works cause i only need to detect if its 14, 15 or 16, but what if i was given a situation where i need to compare large numbers, I wish I a better solution than what i have right now.</p>
  
  <p>Can someone please tell me how to compare time spans in an if else statement properly? Thank you so much. have a nice day :) </p>
  
  <pre><code>DateTime dateFrom = from_dtPicker.Value;
  DateTime dateTo = to_dtPicker.Value;
  TimeSpan DayDifference = dateTo - dateFrom;
  double NumberOfDays = DayDifference.TotalDays;
  
  if ((NumberOfDays &lt; 14) &amp;&amp; (NumberOfDays &gt; 16)) 
  {
      //message box
  }
  </code></pre>
  
  <p>Here's what i mean with my weird solution though,</p>
  
  <pre><code>DateTime dateFrom = pp_from_dtPicker.Value;
  DateTime dateTo = pp_to_dtPicker.Value;
  TimeSpan DayDifference = dateTo - dateFrom;
  numofdaysLBL.Text = DayDifference.TotalDays.ToString();
  
  if ((numofdaysLBL.Text != "14") &amp;&amp; (numofdaysLBL.Text != "15") &amp;&amp; (numofdaysLBL.Text != "16"))
  {
          //msgbox
  }
  </code></pre>