SQL Server 101 – Return the Current DateTime

If you want to return the current date time in SQL Server , the easiest way to do it is using the GETDATE() function.

How to return the Current DateTime in SQL Server ?

The GETDATE() function returns the current date along with the time.

SELECT GETDATE()
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Hey, wait!Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.