Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying date field in database?

Status
Not open for further replies.

lowtide

Programmer
May 17, 1999
24
US
I have a date in the format mo/da/year (i.e. 3/12/2000).<br>
I would like to query a database field with datatype <br>
smalldatetime. Do I need to do some additional formatting<br>
of the date to query for all records that occur on this<br>
day? I know I can query using a format like Mar 12 2000<br>
with LIKE. But do I really have to re format the input<br>
like this?<br>
Thanks<br>
Lowtide
 
What type of database? Access, SQL Server, Oracle?<br>
<br>
-nick bulka
 
Sorry about that.<br>
It's SQL Server 7.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top