title: Compare two Timestamp in java
body: <p>How can I compare if <code>mytime</code> is between <code>fromtime</code> and <code>totime</code>:</p>
  
  <pre><code>Timestamp fromtime;
  Timestamp totime;
  
  Timestamp mytime;
  </code></pre>