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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Leading Zeros question - Help!

Re: Leading Zeros question - Help!

From: Amanda Zaborowski <azaborow_at_mindspring.com>
Date: Mon, 4 Jun 2001 10:16:24 -0400
Message-ID: <9fg3gl$cig$1@slb2.atl.mindspring.net>

that worked perfect! thanks! very much appreciated! "wayne" <no_at_email.please.com> wrote in message news:9fe24r$q7p_at_dispatch.concentric.net...
> Assuming you cannot do a to_char() with a date mask because the hours may
 be
> over 24... Try this:
>
> instead of this:
>
> >Mod(TRUNC(((date_fixed - date_arrived) )*24), 1000)
>
> do this:
>
> to_char(Mod(TRUNC(((date_fixed - date_arrived) )*24), 1000), '00')
>
> but if you can keep the hours under 24, then try this:
>
> to_char(date_fixed - date_arrived,'hh24:mi:ss')
>
> HTH
>
>
Received on Mon Jun 04 2001 - 09:16:24 CDT

Original text of this message

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