To get current date and time in SQL Server, we can use GETDATE() or SYSDATETIME() functions.
GETDATE()
SYSDATETIME()
SELECT GETDATE() SELECT SYSDATETIME()
The first GETDATE() function gives the current date and time, the second SYSDATETIME() gives more precise value.
Write for us
Hosting Recommendations