title: java check time is greater time
body: <p>Hi I'm trying to check if the currentime is > , say, 14:00.  Does anyone know how to do this?</p>
  
  <p>This is what I have:</p>
  
  <pre><code>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd HH:mm");
  </code></pre>
  
  <p>Somehow I guess I need to now create a Date object and use this dateformat?</p>
  
  <p>I know the current time is:</p>
  
  <pre><code>date= new Date();
  </code></pre>
  
  <p>and in the above format it would be return <code>dateFormat.format(date);</code></p>
  
  <p>So can anyone help - much appreciated. (am using Java 7 btw)</p>