E già previsto l'utilizzo di una funzione convertdate:
codice:
function convertDate(theDate)
if isDate(theDate) then
theYear = datePart("yyyy",theDate)
theMonth = datePart("m",theDate)
theDay = datePart("d",theDate)
if theMonth < 10 then theMonth = "0" & theMonth
if theDay < 10 then theDay = "0" & theDay
convertDate = theYear & "/" & theMonth & "/" & theDay
end if
end function
strSQL = "INSERT INTO TABELLA "
strSql = strSql & " (DATAINIZIO, "
strSql = strSql & " DATAFINE) "
strSql = strSql & " VALUES "
strSql = strSql & " (#" & convertdate(strDATAINIZIO) & "#, "
strSql = strSql & " #" & convertdate(strDATAFINE) & "#) "
conn.execute strSQL
Perchè su un PC su 3 non funziona?
Problema di ASP o del PC su cui non funziona?