Ho questo codice:
codice:
strDateGiornate(0) = "1° - 19/09/2004"
		strDateGiornate(1) = "2° - 26/09/2004"
		strDateGiornate(2) = "3° - 03/10/2004"
		strDateGiornate(3) = "4° - 10/10/2004"
		strDateGiornate(4) = "5° - 17/10/2004"
		strDateGiornate(5) = "6° - 24/10/2004"
		strDateGiornate(6) = "7° - 31/10/2004"
		strDateGiornate(7) = "8° - 07/11/2004"
		strDateGiornate(8) = "9° - 14/11/2004"
		strDateGiornate(9) = "10° - 21/11/2004"
		strDateGiornate(10) = "11° - 28/11/2004"
		strDateGiornate(11) = "12° - 05/12/2004"
		strDateGiornate(12) = "13° - 12/12/2004"
		strDateGiornate(13) = "14° - 19/12/2004"
		strDateGiornate(14) = "15° - 09/01/2005"
strDataOdierna = CDate("10/01/2005")
		for i = 0 to 14 
			if (strDataOdierna > cDate(right(strDateGiornate(i),10))) AND (strDataOdierna < right(strDateGiornate(i+1),10)) Then
			'if strDataOdierna > cDate(right(strDateGiornate(i),10)) Then
				strGiornata = (i+2)
				'Response.Write("<script>alert('" & i & "')</script>")
			end if
		next
Lo scopo finale è quello di fare in modo che deve valorizzarmi strGiornata solo quando la data che gli passo si trovab tra due date dell'arrey
Però entra sempre nella condizione if, xchè???