Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Stripping Time from Date.
Assuming the field you want to hold "time only" is a char datatype
you can use the to_char function
to_char(<my_date>, 'hh24miss')
Hope this helps,
Prasad.
grider22_at_my-deja.com wrote:
>
> Hi,
>
> I have a field that holds only time...length of 6 (i.e. HH24MISS). How
> would I strip just the time off of a date (YYYYMMDDHH24MISS) and derive
> it into the time field. Trunc and Round doesn't seem to be working for
> me using 'HH24MISS' as a mask. Any suggestions?
>
> Thanks,
> Stephen
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Fri Jun 04 1999 - 13:35:14 CDT
![]() |
![]() |