dbTalk Databases Forums  

How to extract time value from a date column in oracle

comp.databases comp.databases


Discuss How to extract time value from a date column in oracle in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pankyrai
 
Posts: n/a

Default How to extract time value from a date column in oracle - 07-18-2006 , 05:05 AM






Hi

How can I extract time value from a date column in oracle. For example,
I have a date column which stores date as 7/6/2006 1:21:00 PM.

I want the value 1:21:00 PM

Regards
Pankaj


Reply With Quote
  #2  
Old   
Jim Kennedy
 
Posts: n/a

Default Re: How to extract time value from a date column in oracle - 07-18-2006 , 08:29 PM







"pankyrai" <rai28pankaj (AT) gmail (DOT) com> wrote

Quote:
Hi

How can I extract time value from a date column in oracle. For example,
I have a date column which stores date as 7/6/2006 1:21:00 PM.

I want the value 1:21:00 PM

Regards
Pankaj

The date is stored in 7 bytes. Just do to_char(the_date,'hh:mi:ss PM').
Jim




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.