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 |
|
shapper
Constraint Violating Yak Guru
450 Posts |
Posted - 2008-02-24 : 14:39:02
|
| Hello,How can I get, from current date, new dates which are for example 20 days after or 10 years before?Thanks,Miguel |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-02-24 : 14:52:04
|
| SELECT DATEADD(year, -10, getdate())SELECT DATEADD(day, 20, getdate()) |
 |
|
|
|
|
|