Input, giving the seconds since the beginning of 1970. Sample:
        333874800000
        
        
        
        
      
// sample-2-date.js
// This sample shows some date formats
// display the input date in several formats
function display()
  {
  var input1  = document.getElementById("input1");
  var output1 = document.getElementById("output1");
  var output2 = document.getElementById("output2");
  // convert value string to a number
  var input_value1 = new Number(input1.value);
  // single number argument pased to the Date constructor
  var date1   = new Date(input_value1);
  output1.value = date1.getTime();
  output2.value = date1.toLocaleString();
  }