Date Functions : Introduction « Date Timestamp Functions « Oracle PL/SQL Tutorial






We must format dates to see all of the information contained in a date column.

We use the TO_CHAR function to do the converting.

SQL> SELECT SYSDATE FROM dual;

SYSDATE
---------
29-MAY-07

SQL>
SQL> SELECT TO_CHAR(SYSDATE, 'ddMONyyyy') Today
  2  FROM dual;

TODAY
---------
29MAY2007

SQL>








13.1.Introduction
13.1.1.Using Datetime Functions
13.1.2.Timestamp-Related Functions
13.1.3.Time Interval Related Functions
13.1.4.Date Functions
13.1.5.LAST_DAY, TO_CHAR, TO_DATE
13.1.6.select date '1954-08-11' + 10000 as 10,000 days
13.1.7.Differences Between Dates