In this post explains how to use the GETDATE function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the GETDATE function returns the current date and time.
The syntax for the GETDATE function in SQL Server (Transact-SQL) is:
There are no parameters or arguments for the GETDATE function.
The GETDATE function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server GETDATE function examples and explore how to use the GETDATE function in SQL Server (Transact-SQL).
For example: