©ilj@flowsim.se JavaScript code samples 3 JavaScript: DATE and TIME (the date and time displayed depend on the settings on your computer) >>> this example in Swedish >>> this example in French ![]() ![]() code & explanations further down ![]() ![]() ![]() |
<SCRIPT LANGUAGE = "JavaScript" TYPE="text/javascript"> <!-- tid = new Date() document.writeln(tid) //--> </SCRIPT> will look like this on your screen ![]() |
<SCRIPT LANGUAGE = "JavaScript" TYPE="text/javascript"> <!-- tid = new Date() document.writeln(tid.toLocaleString()) //--> </SCRIPT> will look like this |
![]() |
<SCRIPT LANGUAGE = "JavaScript" TYPE="text/javascript"> <!-- tid = new Date() document.writeln(tid.toGMTString()) //--> </SCRIPT> will express the time in Greenwich Mean Time like this |
OTHER JAVASCRiPT EXAMPLES ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Page by ![]() ilj@flowsim.se ![]() Last modified: August 15, 1998 This page should be part of a frames system at: www.flowsim.se JAVASCRiPT |