This script uses the various parts of the Javascript Date object to build up today's date and display it in the status bar.
First place the following code in the <head> section of the page.
<script language="javascript">
function showdate()
{
var d= new Date();
var y=d.getYear();
var m=d.getMonth() +1;
var day=d.getDate();
var t=m+'/index.html'+d+'/index.html'+y+' ';
statusLine="The date today is " + t + ".";}
</script>
Next call the function from the <body> tag using the onLoad Event Handler :