getting datetime for custom format
<pre><code>  var now = new Date();                 
  now.setHours(AddZero(now.getHours()-24),       
  AddZero(now.getMinutes()),
  AddZero(now.getSeconds()), 
  AddZero(now.getMilliseconds()));                 
  var strDateTime = [[ AddZero(now.getMonth()   1),
  AddZero(now.getDate()), 
  now.getFullYear()].join("/"), ["00", "00"].join(":")].join(" ");           
</code></pre>
