Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 date - 15 minutes

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-05-11 : 05:53:49
how can i get my date minus 15 minutes in sql?
is there a dateadd function?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-11 : 06:03:57
Yup. There is. Did you have a look at books online?
The function is DATEADD and you can get it like this

SELECT DATEADD(mi,-15,Yourdatecolumn) FROM YourTable
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-05-11 : 06:05:42
found it dateadd
Go to Top of Page
   

- Advertisement -