The following script works ok for IE, but when someone views it using Netscape
the year shows as 103, is there anything that can be changed in the script to
render it Netscape friendlier please?
Thanks
<SCRIPT language=JavaSc ript><!--
var DayOfWeek = new
Array('Sunday', 'Monday','Tuesd ay','Wednesday' ,'Thursday','Fr iday','Saturday ');
var theDate = new Date();
var MonthName = new
Array('January' ,'February','Ma rch','April','M ay','June','Jul y','August','Se ptemb
er',
'October','Nove mber','December ');
document.write( '<NOBR>' +
DayOfWeek[theDate.getDay( )] + ' ' +
theDate.getDate () + ' ' +
MonthName[theDate.getMont h()] + ', ' +
(theDate.getYea r() < 100 ? theDate.getYear () + 1900 :
theDate.getYear ()) +
'</font></NOBR>');
//--></SCRIPT>
the year shows as 103, is there anything that can be changed in the script to
render it Netscape friendlier please?
Thanks
<SCRIPT language=JavaSc ript><!--
var DayOfWeek = new
Array('Sunday', 'Monday','Tuesd ay','Wednesday' ,'Thursday','Fr iday','Saturday ');
var theDate = new Date();
var MonthName = new
Array('January' ,'February','Ma rch','April','M ay','June','Jul y','August','Se ptemb
er',
'October','Nove mber','December ');
document.write( '<NOBR>' +
DayOfWeek[theDate.getDay( )] + ' ' +
theDate.getDate () + ' ' +
MonthName[theDate.getMont h()] + ', ' +
(theDate.getYea r() < 100 ? theDate.getYear () + 1900 :
theDate.getYear ()) +
'</font></NOBR>');
//--></SCRIPT>
Comment