getdate time sql code example Example 1: sql DATE = GETDATE() CAST(GETDATE() AS DATE) Example 2: how to get date in sql SELECT CURRENT_DATE from dual;