Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> To_Date

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: To_Date
 Burton  Posted: Mar 22, 2007 09:38:59 PM

 Total Post: 53
 Joined: Dec, 2006






 Friends:
To_Date can convert a character to a date. This I know. Yet I read in the Self-Test software that To_Date may not be used to convert a number to a date...yet I read in the Oracle reference book I have before that it can be done by this:
select to_date (181172,'DD/MM/YY');

So, I am correct in thinking that To_Date may be used to convert character *and* numbers to a date?
Many thanks.
B

 vino
Posted: Apr 04, 2007 10:41:25 AM  

 Total Post: 1
 Joined: Apr, 2007






 
ya...absolutely correct...

 Shital
Posted: May 01, 2007 09:54:22 AM  

 Total Post: 10
 Joined: Apr, 2007






 
You can convert date to character using TO_CHAR function and
convert date to character using TO_DATE function.

Syntax : TO_DATE(char[, 'format_model' ])
Example : TO_DATE('May 24,2001','fxMonth DD,YYYY')

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Vinoth Kumar357
  Gopu Gopi340
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software