SQL Server - AFTER INSERT and INSTEAD OF INSERT Trigger ... - SQLines SQL CURRENT_DATE: Get the Current Date in SQL The TO_DATE function converts a string value to a DATE value. Oracle CURRENT_TIMESTAMP . Then you use the TO_DATE () function to cast the result to the column . Using the SYSDATE function: return the current date from the system ... System date uses the following data function as follows. Using this you can insert date into a table. SQL> select CURRENT_DATE from dual; CURRENT_D ----- 26-APR-20 . The CURRENT_DATE function can be used in Oracle/PLSQL. This is the format of the date in the first parameter. It requires no parameters and is a very simple function. Oracle does not have a data type that stores only the date without the time. Sysdate Function to Get Date. If you omit the factional_second_prevision argument, it defaults to 6.. Return Value. how to add a timestamp in sql. It's great for inserting dates into tables. This method accepts two parameters −. The time zone offset reflects the current local time of the SQL session. You need to type in the format to use as the second parameter in the TO_DATE function. ALTER SESSION SET TIME_ZONE = '-5:0'; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24 . You can insert date values in SQL using the date datatype, The java.sql.Date class maps to the SQL DATE type. CURRENT_DATE: this function is used to display the current date in our system with current time zone. Internally, DATE stores year, month, day, hour, minute and second as explicit values. SYSDATE: it also used to return the current date of system. This . The trouble is just that when you select a column of DATE datatype from the database, the default format mask doesn't show the time.