D
darrel
I'm grabbing today's date with some ASP.net code:
Dim Today As Date
Today = Microsoft.VisualBasic.Today()
I'm then trying to run a SQL query with the following WHERE statement:
WHERE postdate <= " & Today & "
But it's pulling up records that have a postdate in the future.
A sample:
Today (when written to screen) = 3/23/2005 12:00:00 AM
In the SQL table postdate field = 3/28/2005
Anyone see something wrong with what I have that would be causing this? Is
it because in my code I'm grabbing the time, while SQL is only storing the
date?
-Darrel
Dim Today As Date
Today = Microsoft.VisualBasic.Today()
I'm then trying to run a SQL query with the following WHERE statement:
WHERE postdate <= " & Today & "
But it's pulling up records that have a postdate in the future.
A sample:
Today (when written to screen) = 3/23/2005 12:00:00 AM
In the SQL table postdate field = 3/28/2005
Anyone see something wrong with what I have that would be causing this? Is
it because in my code I'm grabbing the time, while SQL is only storing the
date?
-Darrel