Ciao io sono nuovo in javascript ho tale codice javascriptDate.getDay() ritorna javascript giorno sbagliato
alert(DATE.value);
var d = new Date(DATE.value);
var year = d.getFullYear();
var month = d.getMonth();
var day = d.getDay();
alert(month);
alert(day);
if(2012 < year < 1971 | 1 > month+1 > 12 | 0 >day > 31){
alert(errorDate);
DATE.focus();
return false;
}
DATE.value = "1991/11/11"
quando chiamo alert (giorno); mi mostra 3;
quando chiamo alert (d); mi viene restituito informazioni corrette
[Era lunedi ...] (http://www.dayoftheweek.org/?m = Novembre & d = 11 & y = 1991 & go = Vai) – gdoron