title: How to get the Server date in JavaScript
body: <p>I am working on a small project where I am dealing with dates.</p>
  
  <p>In order to get the today's date, I'm currently using the following JavaScript code:</p>
  
  <pre><code>    var today = new Date();
  </code></pre>
  
  <p>However, this results in the current date set on the client system, which may vary between systems, and hence the final output is different.</p>
  
  <p>So in order to get the same result on all clients, I need to know the current date from the server. How can I get the server date in JavaScript?</p>