CREATEODBCDATE
I have a field named docDate that is defined as date time in sql table.
I want to query the table and find all records for docDate >= 05/18/2009 and docDate <= 05/24/2009
If I have this in my query, is it correct ? It seems to run fine thru analyzer but there are too many records for me to cound manuall to verify.
WHERE CONVERT(CHAR(10), docDate, 101) between #createodbcdate(lastWeek)# and #CreateODBCDate(todaysDate)#, where lastWeek is 05/18/2009 and todaysDate is 05/24/2009
