how to get current time using datetime in sql code example Example: how to to get current date and time in sql SELECT CURRENT_DATE from dual;