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: Last_Day...but is there a First_Day?

Re: Last_Day...but is there a First_Day?

From: Paul Q <paulq_at_home.com>
Date: Sun, 26 Sep 1999 00:51:44 GMT
Message-ID: <A6eH3.14069$zl1.256907@news2.rdc1.on.home.com>

Subtract 1 month add 1 day..

select add_months(last_day(your_date),-1)+1 from dual

ramsey84_at_my-deja.com wrote in message <7sjjhb$if6$1_at_nnrp1.deja.com>...
>Does anyone know the best way to return the first day of the month for
>a date field. For instance if
>
>15:37:40 SQL> select last_day(sysdate) from dual;
>
>LAST_DAY(
>---------
>30-SEP-99
>
>how would I get the output to be 01-SEP-99, instead? TIA!
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Sat Sep 25 1999 - 19:51:44 CDT

Original text of this message

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