Full version: jsB@nk » Time » Clock » Simple Current Date script
URL: https://www.javascriptbank.com/simple-current-date-script.html
A script that displays the current date, in the format of 'August 5, 2006'.
Full version: jsB@nk » Time » Clock » Simple Current Date script
URL: https://www.javascriptbank.com/simple-current-date-script.html
<SCRIPT LANGUAGE="JavaScript1.2">var months=new Array(13);months[1]="January";months[2]="February";months[3]="March";months[4]="April";months[5]="May";months[6]="June";months[7]="July";months[8]="August";months[9]="September";months[10]="October";months[11]="November";months[12]="December";var time=new Date();var lmonth=months[time.getMonth() + 1];var date=time.getDate();var year=time.getYear();if (year < 2000) // Y2K Fix, Isaac Powellyear = year + 1900;document.write("<center>" + lmonth + " ");document.write(date + ", " + year + "</center>");</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->