Ti conviene utilizzare il formato ISO della sintassi SQL per quando vai a fare l'inserimento.
Questo inserisce una data valida universalmente con sintassi unica.
Il formato è
"YYYYMMDD hh:mm:ss"
Con:
Y=Anno
M=Mese
D=Giorno
Ecco una funzioncina che può fare al caso tuo. Non so se è perfetta ma per funzionare funziona.
codice:
Function IsoDate(dteDate)
'Version 1.0
If IsDate(dteDate) = True Then
DIM dteDay, dteMonth, dteYear, dteHour, dteMinute, dteSecond
dteSecond = Second(dteDate)
dteMinute = Minute(dteDate)
dteHour = Hour(dteDate)
dteDay = Day(dteDate)
dteMonth = Month(dteDate)
dteYear = Year(dteDate)
IsoDate = dteYear & _
Right(Cstr("0"&dteMonth),2) & _
Right(Cstr("0"&dteDay),2) &_
" " &_
Right(Cstr("0"&dteHour),2) &_
":" & Right(Cstr("0"&dteMinute),2) &_
":" & Right(Cstr("0"&dteSecond),2)
Else
IsoDate = Null
End If
End Function
@ RamboExp
Sei QUEL RamboExp (MdA)?