currentDate = new Date();

tabMois = new Array(); 
tabMois[1] = 'janvier';
tabMois[2] = 'février';
tabMois[3] = 'mars';
tabMois[4] = 'avril';
tabMois[5] = 'mai';
tabMois[6] = 'juin';
tabMois[7] = 'juillet';
tabMois[8] = 'août';
tabMois[9] = 'septembre';
tabMois[10] = 'octobre';
tabMois[11] = 'novembre';
tabMois[12] = 'décembre';

tabDay = new Array(); 
tabDay[0] = 'Dimanche';
tabDay[1] = 'Lundi';
tabDay[2] = 'Mardi';
tabDay[3] = 'Mercredi';
tabDay[4] = 'Jeudi';
tabDay[5] = 'Vendredi';
tabDay[6] = 'Samedi';

jour = currentDate.getDate();
mois = currentDate.getMonth();
annee = currentDate.getYear();
day = currentDate.getDay();

heure = currentDate.getHours();
mn = currentDate.getMinutes();

document.write(tabDay[day]);
if(annee==99) {
  annee=1999;
}  

if(jour<10) {
  document.write("0" + jour + " " + tabMois[mois+1] + " " + annee);
}
else {
  document.write(" " + jour + " " + tabMois[mois+1] + " " + annee);
}

if(mn < 10) {
  document.write(" " + heure + ":0" + mn);
}
else {
  document.write(" " + heure + ":" + mn);
}


