var ObjetDate = new Date();
var thisYear = ObjetDate.getFullYear(); // Année
var thisMonth = ObjetDate.getMonth(); // Mois de 0 à 11 (12 mois)
var thisDay = ObjetDate.getDate(); Jour du mois 1 à 31
var thisMinute = ObjetDate.getMinutes() ; // 0 à 59
var thisSec = ObjetDate.getSeconds(); // 0 à 59
var HoursAutmn = ObjetDate.getHours() - 1;
var HoursPrintemps = ObjetDate.getHours() + 1;
var DateAutmn = new Date(thisYear + "-" + thisMonth + "-" + thisDay + " " + HoursAutmn + " " + thisMinute + ":" + thisSec) // la date ajustée à l'automne
var DatePrintemps = new Date(thisYear + "-" + thisMonth + "-" + thisDay + " " + HoursPrintemps + " " + thisMinute +":" + thisSec) // La date ajustée au printemps |