There is no input value. A string is created with the current time

The result is a string, with no choice of format.

A copy of the JavaScript functions in the head element:

// sample-5-default-string.js
// This sample shows default date string

function display()
  var output1 = document.getElementById("output1");
  // create a Date string using no parameter - default value argument to the Date function.
  // In this case Date is NOT a constructor
  var date_object = Date();
  output1.value = date_object;