La fecha y la hora son:

a) Contenido de innerHTML de elemento identificado por id="h2"

var innerH2 = document.getElementById("h1").innerHTML;

b) Contenido de outerHTML de elemento identificado por id="h1"

var outerH2 = document.getElementById("h1").outerHTML;

c) Contenido de de la propiedad global: location.href

var href = location.href;

d) Contenido de de la propiedad global: location

var loc = location

e) Contenido de de las propiedades globales: screen.width y screen.heigth

var w = "Total Width: " + screen.width;

var h = "Total Height: " + screen.height;