Javascript Objects JavaScript DHTML



A Dated Example


var dtNow = new Date();
dtNow.setDate(18);
dtNow.setMonth(10);
dtNow.setYear(2008);
dtNow.setHours(7);
dtNow.setMinutes(2);
document.writeln(dtNow.toString() + "");
document.writeln(dtNow.toLocaleString() + "");
document.writeln(dtNow.toLocaleDateString() + "");
document.writeln(dtNow.toLocaleTimeString() + "");
document.writeln(dtNow.toGMTString() + "");
document.writeln(dtNow.toUTCString());