SQLzoo.net

Get the current date and/or time

SQL Server
SQL Standard specifies CURRENT_TIMESTAMP, CURRENT_DATE and CURRENT_TIME. These are widely ignored :(
Execute set up code


Specific to SQL Server
none

Related links:

  • FUNCTIONS