title: In Javascript verify is var is valid datetime object
body: <p>I need to verify is var is valid datetime object.
  This </p>
  
  <pre><code>alert( "dat::"+( typeof dat ))
  </code></pre>
  
  <p>returns "object".
   Which is the valid way ?</p>