title: Java: Get current Date and Time from Server not System clock
body: <p>In my Java program, I need to create an instance of the current moment in time. I use</p>
  
  <pre><code>Date date = new Date();
  </code></pre>
  
  <p>This gives me the current date and time as per the host machine's system clock. Is there any way I can get the current date and time from an online server? The world time server perhaps?</p>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/2510649/how-to-make-my-java-app-get-global-time-from-some-online-clock">this post</a> and it describes what I want but I'm afraid I need more help than what's provided there. </p>
  
  <p>In a nutshell, I want to get a date and time that is not dependant on the host machine's system clock.</p>
  
  <p>Thanks!</p>