function updateDateArrivee(tmp_calendrier) { var tmp_date = tmp_calendrier.date; tmp_jour = tmp_date.getDate(); tmp_mois = tmp_date.getMonth(); tmp_mois = tmp_mois + 1; tmp_annee = tmp_date.getFullYear(); document.getElementById("DateIn").value = tmp_mois + "/" + tmp_jour + "/" + tmp_annee; }