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 |
|
ckuo@kahluadesigns.com
Yak Posting Veteran
58 Posts |
Posted - 2002-05-21 : 16:46:49
|
| Hi, Using GetDate(), how would I determine a date such as yesterday, or 1 day and 3 hours ago. Thanks |
|
|
jbkayne
Posting Yak Master
100 Posts |
Posted - 2002-05-21 : 16:50:41
|
| select dateadd("dd",-1,getdate())This will return the previous day.Look up "dateadd" in Books Online for more details... |
 |
|
|
|
|
|