title: Convert time into Timer Interval using C#
body: <p>I am comparing timing and based on that assigning interval to timer.</p>
  
  <p>I have 2 datetime,</p>
  
  <p>For i.e.</p>
  
  <pre><code>Datetime dt1 = 04:00:00;
  Datetime dt2 = 15:20:28;
  Datetime dt3 = 24:00:00;
  </code></pre>
  
  <p>Now, I want to set interval to call timer at 04:00:00. Think that, right now, time is 15:20:28, so to call timer at 04:00:00, I will need to do some operation.</p>
  
  <p>So, what should i do to call <code>Timer</code> at 04:00:00 ???
  In short, I want to check out time, if it is not 04:00 AM then set proper interval to call timer at 04:00 AM.</p>
  
  <p>And convert time into timer interval ???</p>