I am working with a SQL 7 Database, and one of the fields I need to select on is a Date field. The data stored there is in standard date format "MM-DD-YY HH:MM:SS" (you know what I mean.)
Anyway, I need to select a set of records from this DB for a given day. But when I pass a date value consisting of just a date part (no time) like "MM-DD-YY" I get no results.
How can I approach this cleanly? I'd prefer to avoid a greater than + Less than approach if possible. Do I need ot use something lie a LIKE operator? Of would reformatting the Date value I'm searching on differently help?
Thanks in advance
Craig
Anyway, I need to select a set of records from this DB for a given day. But when I pass a date value consisting of just a date part (no time) like "MM-DD-YY" I get no results.
How can I approach this cleanly? I'd prefer to avoid a greater than + Less than approach if possible. Do I need ot use something lie a LIKE operator? Of would reformatting the Date value I'm searching on differently help?
Thanks in advance
Craig