// RECUPERATION DE LA DATE var now = new Date(); var numday = now.getDate(); var nummonth = now.getMonth(); var month = nummonth+1; if(month<10) { month = "0"+month; } var numyear = now.getFullYear(); // RECUPERATION DE L'HEURE var numhours = now.getHours(); if(numhours < 10) { numhours = "0"+numhours; } var numminutes = now.getMinutes(); if(numminutes < 10) { numminutes = "0"+numminutes; } var numseconds = now.getSeconds(); if(numseconds < 10) { numseconds = "0"+numseconds; } // AFFICHAGE DU COUPLE DATE/HEURE var nowtoday = "Nous sommes le "; nowtoday += numday+"/"+month+"/"+numyear; nowtoday += " et il est "; nowtoday += numhours+":"+numminutes+":"+numseconds;