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!

Pulling records by time

Status
Not open for further replies.

simba327

MIS
Dec 4, 2002
17
US
I need to select records based on the hour:minute portion of the date time field. The field is year to second. I can set up a query with dynamic dates, but is it possible to pull specific times, for example 08:15 to 17:15 in a given week, month, year, etc., without the user having to input the entire DT field?
 
A starting point:
WHERE EXTEND(DateTimeField, HOUR TO MINUTE) BETWEEN '08:15' AND '17:15'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top