how to get the date from datetime in sql code example Example: how to get date in sql SELECT CURRENT_DATE from dual;