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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How many days until Christmas?

RE: How many days until Christmas?

From: <ddorr.cs_at_clearstream.com>
Date: Wed, 11 Oct 2000 14:11:21 +0200
Message-Id: <10646.118961@fatcity.com>


select to_date('25-12-2000','DD-MM-YYYY') - sysdate from dual;

You may have to do some ROUNDing if you want an integer.

> ----------
> From: Mark Leith[SMTP:mark_at_cool-tools.co.uk]
> Reply To: ORACLE-L_at_fatcity.com
> Sent: Wednesday, October 11, 2000 14:00
> To: Multiple recipients of list ORACLE-L
> Subject: How many days until Christmas?
>
> Hi Guy's
>
> I've been asked a question, but haven't the time to check it, so I'm sorry
> if its simple. Is there a way of finding the difference in days between
> sysdate (today) and a point in time in the future (Christmas) through
> Oracle?
>
> Don't ask me why, mine is just to do and die..
>
> Thanks
>
> Mark
>
> Mark Leith
> =================
> Cool Tools UK Ltd
> +44 1905 330 281
> mark_at_cool-tools.co.uk
Received on Wed Oct 11 2000 - 07:11:21 CDT

Original text of this message

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