Using SQL Server datetime functions GETDATE, DATENAME and DATEPART
Use SQL Server T-SQL datetime functions to retrieve specific data. Learn how to use GETDATE, DATENAME and DATEPART in SQL SELECT to extract datetime values. ... Retrieving the current date and time One of the handiest datetime functions in T-SQL is ......