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)
 Today's date in select statement

Author  Topic 

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2008-11-26 : 10:24:22
How do I display todays date in a select statement?

Thanks

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2008-11-26 : 10:24:54
use getdate() function
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2008-11-26 : 10:26:55
alternatively, you could use CURRENT_TIMESTAMP
Go to Top of Page

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2008-11-26 : 10:28:47
Perfect, thanks!
Go to Top of Page
   

- Advertisement -