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.
| Author |
Topic |
|
rowter
Yak Posting Veteran
76 Posts |
Posted - 2010-02-02 : 17:48:53
|
| Hi,I need to add 30 minutes to the current timeI could get te current time this way:SELECT CONVERT(VARCHAR(30), GETDATE(), 114) as timeHow can i do this?Thanks in advance |
|
|
Lamprey
Master Smack Fu Yak Hacker
4614 Posts |
Posted - 2010-02-02 : 18:19:32
|
| SELECT DATEADD(MINUTE, 30, CURRENT_TIMESTAMP)SELECT DATEADD(MINUTE, 30, GETDATE()) |
 |
|
|
rowter
Yak Posting Veteran
76 Posts |
Posted - 2010-02-03 : 10:05:16
|
| Thanks |
 |
|
|
|
|
|