Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use the time portion of a datetime column
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00557574
Message ID:
00557918
Views:
18
>I'd like to find all rows where the time portion of a date_time column is between 11:00AM and 1:15PM.
>
>I seem to get into quite a rat's nest of convert(), datediff() and dateadd() combinations when looking for a simple way to do this.
>
>Thanks,
>Mike

Mike,

Try DATEPART()
Previous
Reply
Map
View

Click here to load this message in the networking platform