Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Show time/day visitor comes to a web page


< script >

//This script posts the exact day and time you arrived

RightNow = new Date ();
document.write( "Today's date is " + (RightNow.getMonth() + 1) +
"-" + RightNow.getDate() + "-" + RightNow.getFullYear() + ".
You entered this Web Page at exactly : " + RightNow.getHours() +
":" + RightNow.getMinutes() + " and " + RightNow.getSeconds() +
" seconds" )

</ script >