Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: extract just the time from a date time field

Re: extract just the time from a date time field

From: Noel <tbal_at_go2.pl>
Date: Fri, 12 Mar 2004 17:50:59 -0000
Message-ID: <c2spho$t24$1@inews.gazeta.pl>

> Looking for a function that will extract just the time from a date time
field.
>
> Example:
>
> 02/19/2004 12:05:32
>
> I tried to use trim-trailing but it wont' let me do it on a date field.
> I want to extract just 12:05:32
>

SELECT TO_CHAR(sysdate,'HH24:MI:SS')
  FROM DUAL;

--
Noel
Received on Fri Mar 12 2004 - 11:50:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US