Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing DATETIME fields
Message
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00710792
Message ID:
00710835
Views:
14
Use this syntax for the GETDATE
CONVERT(DATETIME, CONVERT(CHAR(10), GETDATE(), 101))
>Hi everyone,
>
>How do you compare only the date part of datetime fields?
>
>I tried examdate = GETDATE() and it does not compare to =. I compared examdate = '10/13/2002' and its equal. Is it comparing the time also?
>
>What is the proper code to compare only the two dates without the times in an SQL Query Criteria?
>
>Thanks
>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform