date from getdate in sql code example
Example 1: sql datetime as date
SELECT
CONVERT(DATE, GETDATE()) date;
Example 2: how to get date in sql
SELECT CURRENT_DATE from dual;
SELECT
CONVERT(DATE, GETDATE()) date;
SELECT CURRENT_DATE from dual;