Dopo aver effettuato qualche modifica alla pagina web, non so come lo script della data mi ha dato questo errore:
--> Amsterdam Luned?, 4 Luglio 2005 <--
Non riesco a capire come risolvere il problema, eppure, su un'altra pagina funziona perfettamente![]()
Come posso evitare quel fastidioso punto interrogativo ed avere la lettera finale del Lunedì
Amsterdam
<script language=javascript>
<!--
;today = new Date(); weekday = today.getDay();if (weekday == 6) document.write(' Sabato');if (weekday == 0) document.write('Domenica');if (weekday == 1) document.write('Luned?');if (weekday == 2) document.write('Marted?');if (weekday == 3) document.write('Mercoled?');if (weekday == 4) document.write('Gioved?');if (weekday == 5) document.write('Venerd?');document.write(', ');
date = today.getDate();
document.write (date,' ');
month = today.getMonth();if (month == 0) document.write('Gennaio');if (month == 1) document.write('Febbraio');if (month == 2) document.write('Marzo');if (month == 3) document.write('Aprile');if (month == 4) document.write('Maggio');if (month == 5) document.write('Giugno');if (month == 6) document.write('Luglio');if (month == 7) document.write('Agosto');if (month == 8) document.write('Settembre');if (month == 9) document.write('Ottobre');if (month == 10) document.write('Novembre');if (month == 11) document.write('Dicembre');
year=today.getFullYear();
document.write (' ',year);// -->
</script>