P
pb
Hi,
I am updating a database based and adding the time the entry was added
with the query below...
strQuery = "INSERT INTO Visits ( EmailAddress, [Password],
TimeCreated ) values ('" & emailaddress & "','" & password & "','" &
Now() & "')"
The TimeCreated field is specified as a date field.
I then subsequently read from the database and check against the
current time....
dateCreated = dr.Item("Timecreated")
dateNow = Now()
If (DateDiff(DateInterval.Minute, dateCreated, dateNow)) > 5
Then.....
What I am finding is the day and month has been interchanged...
7/6/2007 9:03:14 = datecreated
6/7/2007 9:03:16 = datenow
Now the annoying thing was I wrote this yesterday on the 6/6 and
everything worked as expected. Come today!!!
What trick can I use to remedy this?
Cheers,
Pb
I am updating a database based and adding the time the entry was added
with the query below...
strQuery = "INSERT INTO Visits ( EmailAddress, [Password],
TimeCreated ) values ('" & emailaddress & "','" & password & "','" &
Now() & "')"
The TimeCreated field is specified as a date field.
I then subsequently read from the database and check against the
current time....
dateCreated = dr.Item("Timecreated")
dateNow = Now()
If (DateDiff(DateInterval.Minute, dateCreated, dateNow)) > 5
Then.....
What I am finding is the day and month has been interchanged...
7/6/2007 9:03:14 = datecreated
6/7/2007 9:03:16 = datenow
Now the annoying thing was I wrote this yesterday on the 6/6 and
everything worked as expected. Come today!!!
What trick can I use to remedy this?
Cheers,
Pb