title: How to read client machine time in pageload event?
body: <p>I am using javascript to get client date as below</p>
  
  <pre><code>function getDate() {
  var dt = new Date();
  return (dt);  
  }
  </code></pre>
  
  <p>I want this value in pageload ? How to assign javascript return value to a variable ?
  after page load javascript is calling , but I want the result to the variable  in the pageload.</p>