C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to get current date in SQL Server


Posted Date: 04 Mar 2008    Resource Type: Code Snippets    Category: SQL

Posted By: Ashwini Rupert       Member Level: Diamond
Rating:     Points: 10



The GETDATE function returns the current system date and time



USE DATABASE

SELECT GETDATE()





Responses

Author: andy robarts    28 Apr 2008Member Level: Gold   Points : 2
select syadate from dual;



Author: Dainy Patel    30 Apr 2008Member Level: Gold   Points : 2
plz go to this link
http://www.mydatabasesupport.com/forums/sybase/130579-dbd-sybase-datetime.html


Author: andy robarts    30 Apr 2008Member Level: Gold   Points : 2
select syadate from dual;



Author: Sridevi Nagalingam    02 May 2008Member Level: Silver   Points : 2
select getdate()


Author: Nithya    02 May 2008Member Level: Bronze   Points : 2
There are three ways to retrieve the current datetime in SQL SERVER.
CURRENT_TIMESTAMP, GETDATE(), {fn NOW()}
SELECT CURRENT_TIMESTAMP
GO
SELECT {fn NOW()}
GO
SELECT GETDATE()
GO




Author: Bunty    10 May 2008Member Level: Diamond   Points : 2
select GetDate()


Author: Sonu Fernandes    21 May 2008Member Level: Gold   Points : 2
Simple in SQL Server we have some pre-defined Function
To get Current Date of the System, just call the getdate() Function

Ex: select getdate()


Author: T.Thirumala Reddy    22 Oct 2008Member Level: Bronze   Points : 0
select getdate()


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to get the length of a string in SQL Server
Previous Resource: How to get day from a date in SQL Server
Return to Discussion Resource Index
Post New Resource
Category: SQL


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

email fax service

Contact Us    Privacy Policy    Terms Of Use