terp_in_umcp
04-11-2007, 06:18 PM
Hi there...
I am trying to compare the date part of a datetime value field with today's date....
Here's the sql:
mySQL = "Select * from Test WHERE TheDate LIKE '"&date()"' ORDER BY TheDate"
Set rs= Con.Execute( mySQL )
As you can see, I dont know how to strip just the date from TheDate field and compare it with todays date...
Right now the query returns nothing even though Test has records for today....
I posted this in SQL forum but turns out its an ASP problem...
Any clues???
Thanks!!
I am trying to compare the date part of a datetime value field with today's date....
Here's the sql:
mySQL = "Select * from Test WHERE TheDate LIKE '"&date()"' ORDER BY TheDate"
Set rs= Con.Execute( mySQL )
As you can see, I dont know how to strip just the date from TheDate field and compare it with todays date...
Right now the query returns nothing even though Test has records for today....
I posted this in SQL forum but turns out its an ASP problem...
Any clues???
Thanks!!