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

Home -> Community -> Usenet -> c.d.o.misc -> Re: [PL/SQL} NUMBER of DAY function exist ?

Re: [PL/SQL} NUMBER of DAY function exist ?

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Thu, 13 Jan 2000 19:40:19 +0100
Message-ID: <947788918.2113.0.pluto.d4ee154e@news.demon.nl>


The date is measured in days
you should be able to have
day_num := trunc(sysdate) - trunc(my_date);

without problem.

Hth,

--
Sybrand Bakker, Oracle DBA
Eric D Eric_at_netcom.ca> <D<SPAM> wrote in message news:z9nf4.203716$5r2.552862_at_tor-nn1.netcom.ca...
> Hi everyone
>
> Thank a lot for that.
>
> I have a other question.
>
> I would like to built a function that give me the number of day between
your
> date and today.
> It could be a negative day also. But it's not possible to have the real
> number of day on this topic.
>
> DAY_NUM := (SYSDATE - MY_DATE) / (60 * 60 *24)
>
> How do you do ?
>
> Pierre
>
>
>
Received on Thu Jan 13 2000 - 12:40:19 CST

Original text of this message

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