sql get date from datetime code example
Example 1: sql datetime as date
SELECT
CONVERT(DATE, GETDATE()) date;
Example 2: get current date sql
SELECT getdate(); -- Get Current date in SQL Server
Example 3: sql display today's date
SELECT getdate()
Example 4: sql server format datetime to short date
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )
Example 5: how to get date in sql
SELECT CURRENT_DATE from dual;