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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time values and calculations

Status
Not open for further replies.

RRinTetons

IS-IT--Management
Jul 4, 2001
333
US
SQL Server's datetime data type presents some challenges for me when the only part of it I want to deal with is the time. e.g. - I want to specify that a particular resource is available everyday from 9:00 AM to 4:00 PM. Now I want to check in an sp if it's currently later than 9 or earlier than 4. The only way I can see to do that is to always deal with the value through a bunch of function calls to strip it down to seconds since midnight (or something like that).

Is there a standard practice for dealing with times without dates on SQL Server?

-
Richard Ray
Jackson Hole Mountain Resort
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top