Retrieve and return the current date and time.
SELECT CURRENT_TIMESTAMP; |
CURRENT_TIMESTAMP function provides the current date and time in the format ‘YYYY-MM-DD hh:mm.mmm’.
Tip: Consider using the GETDATE() function for similar functionality.
CURRENT_TIMESTAMP |
Works in: |
SQL Server (beginning from 2008), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse |