Microsoft
Software
Hardware
Network
Question : How do I get the time only from a SQL datetime value?
I've googled this until my brain hurts and every example I try doesn't return the right thing. I have this, in a datetime field:
'2007-03-17 13:25:00'
I need to query on the time only. (13:25:00) How do I do this reliably?
Thanks!
Answer : How do I get the time only from a SQL datetime value?
SELECT CONVERT(CHAR(10),GETDATE()
,8)
Random Solutions
Finding Null in a memo field and what event to use to check the related box
Using CopyFromRecordset with recordset yields a blank worksheet. Urgent!
Automatically close Outlook on log off or shutdown
Validating users with three level security
Calculating Percentile Ranks in MS Access 2003
Counting many items within a date range
Can't open AutoCAD files
Excel VBA -- Using .xlT File to Send E-Mail with .xlS File Attachment (NEW QUESTION)
Sybase 11 Error
TAPI in VB.NET