... così:
codice:
<script language="" class="normale">
<!--
var days=new Array(8);
days[1] = "Domenica";
days[2] = "Lunedi;";
days[3] = "Martedi;";
days[4] = "Mercoledi;";
days[5] = "Giovedi;";
days[6] = "Venerdi;";
days[7] = "Sabato";
var months=new Array(13);
months[1] = "Gennaio";
months[2] = "Febbraio";
months[3] = "Marzo";
months[4] = "Aprile";
months[5] = "Maggio";
months[6] = "Giugno";
months[7] = "Luglio";
months[8] = "Agosto";
months[9] = "Settembre";
months[10] = "Ottobre";
months[11] = "Novembre";
months[12] = "Dicembre";
var dateObj=new Date();
var wday=days[dateObj.getDay() + 1];
var lmonth=months[dateObj.getMonth() + 1];
var date=dateObj.getDate();
var anno=dateObj.getYear();
if (navigator.appName == "Microsoft Internet Explorer")
{
if (anno > 99)
{
document.writeln(wday + " " + date + " " + lmonth + " " +anno);
}
else
{
document.writeln(wday + " " + date + " " + lmonth + " 19" +anno);
}
}
else
{
if (anno > 99)
{
document.writeln(wday + " " + date + " " + lmonth + " " +(anno+1900));
}
else
{
document.writeln(wday + " " + date + " " + lmonth + " 19" +anno);
}
}
// -->
</script>
Ciao !