Originariamente inviato da optime
ripeto. access ragiona con mm/dd/yyyy. anche tu devi adeguarti (insert e update li devi fare in quel modo). quando poi visualizza, fai la conversione in dd/mm/yyyy.
Nel Forum ho trovato questo codice:
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

myDate = date()
response.write convertDate(myDate)
%>
che usandola per salvare nel DB sembrerebbe funzionare (almeno per l'italiano) pensi possa funzionare anche per l'inglese?