Skip to content

Coder Tutorial

Menu
  • Home
  • HTML
  • CSS
  • PHP
  • SQL
  • MySQL
  • JS
  • PL/SQL
  • Python
  • Java
  • Oracle
Home
Oracle
Oracle TO_DATE

Oracle TO_DATE

The Oracle TO_DATE function converts a character set (CHAR, VARCHAR2, NCHAR, or NVARCHAR2) to a value of DATE data type.

Oracle TO_DATE example

select 
to_date('2011/11/06', 'yyyy/mm/dd') 
from dual;

11/6/2011

select 
to_date('061111', 'MMDDYY') 
from dual;

6/11/2011

select 
to_date(sysdate, 'dd-mm-yyyy') 
from dual;

11/6/0011

select 
to_date('20100715', 'yyyymmdd') 
from dual;

7/15/2010

Tutorials

  • Oracle Tutorial
  • Oracle Create Table
  • Oracle Insert
  • Oracle Update
  • Oracle Delete
  • Oracle Anonymous Block
  • Oracle Data Types
  • Oracle Conditional Statements
  • Oracle Transaction Statements
  • Oracle Loop Statements
  • Oracle Cursors
  • Oracle Create Procedure
  • Oracle Create Function
  • Oracle Create Package
  • Oracle Create View
  • Oracle Create Trigger
  • Oracle Exception

Recent Posts

  • Java Polymorphism
  • Java Encapsulation
  • Java Abstraction
  • PostgreSQL ERROR: cannot begin/end transactions in PL/pgSQL
  • PostgreSQL Column must appear in the GROUP BY clause
  • PostgreSQL Column specified more than once
  • PostgreSQL Create database, Alter database examples
  • PostgreSQL Create schema syntax, Alter schema
  • PostgreSQL Create database user, alter and drop username
  • PostgreSQL Alter table name. Modify column name
Coder Tutorial Copyright © 2025. | Privacy Policy
Back to Top ↑