B
Bob
Hi,
I have a wrong result when testing today against a date fetched from a table
in excel.
The value in excel is: 14/12/2006 (european format).
When today is after that value in excel, the message "time is over" must
appear, otherwise nothing.
My problem is that the message appear already when today = that value.
Any idea why?
When doing response.write(n & " " & dtreader.GetDateTime(0)), i get:
14/12/2006 18:57:23 14/12/2006
Thanks
Bob
Dim n As Date
n = Date.Now
......
sql = "select mydate from mytable;"
comd = New OleDbCommand(sql, oConnection)
dtreader = comd.ExecuteReader
dtreader.Read()
.....
If n > dtreader.GetDateTime(0) Then
response.write("time is over")
end if
I have a wrong result when testing today against a date fetched from a table
in excel.
The value in excel is: 14/12/2006 (european format).
When today is after that value in excel, the message "time is over" must
appear, otherwise nothing.
My problem is that the message appear already when today = that value.
Any idea why?
When doing response.write(n & " " & dtreader.GetDateTime(0)), i get:
14/12/2006 18:57:23 14/12/2006
Thanks
Bob
Dim n As Date
n = Date.Now
......
sql = "select mydate from mytable;"
comd = New OleDbCommand(sql, oConnection)
dtreader = comd.ExecuteReader
dtreader.Read()
.....
If n > dtreader.GetDateTime(0) Then
response.write("time is over")
end if