|
-
Nov 7th, 2000, 10:43 AM
#1
Thread Starter
Member
Does anyone know how to strip the time from a datetime field declared in a stored procedure?
-
Nov 7th, 2000, 01:39 PM
#2
Fanatic Member
select DATEPART(hour,getdate())
select DATEPART(minute,getdate())
This is just an example...
assuming u're using SQL SERVER
Otherwise
use
select substring(convert(varchar(20),getdate()), 13, 20)
good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|