The application my db is tied to allows the user to select times for filtering the data (for example, task begins between 04:30 and 11:00, and task ends between 15:00 and 16:00). The task data is stored in the database as a datetime field, and I'm not sure how to compare the time portion of that field with the user-entered times. Any suggestions?