title: Java: Compare Date.getTime with a different date
body: <p>There is the date <code>date1</code> given with the format <code>YY-MM-dd hh:mm:ss.SSS</code>
  I want to compare </p>
  
  <pre><code>date1.getTime()
  </code></pre>
  
  <p>with one retrieved by doing </p>
  
  <pre><code>new Date().getTime()
  </code></pre>
  
  <p>There is </p>
  
  <pre><code>SimpleDateFormat sf = new SimpleDateFormat("YY-MM-dd hh:mm:ss.SSS");
  Date date1 = sf.parse(date1AsString);
  ...
  compare date1.getTime() with new Date().getTime();
  </code></pre>
  
  <p>How can I bring these two dates to a common 'timezone' to compare them?
  How can I obtain date1 to be on the same 'time length' as new Date()? I want to have the same timezone...
  Thanks</p>