Re: First day date of a month
From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 23 Feb 2000 18:35:39 +0100
Message-ID: <951327775.2284.4.pluto.d4ee154e_at_news.demon.nl>
Date: Wed, 23 Feb 2000 18:35:39 +0100
Message-ID: <951327775.2284.4.pluto.d4ee154e_at_news.demon.nl>
[Quoted] [Quoted] select to_char(trunc(sysdate,'YYYY-MM')) from dual;
[Quoted] [Quoted] Sorry to correct an employee of Oracle.
Regards,
Sybrand Bakker, Oracle DBA
Brian Duff <bduff_at_uk.oracle.com> wrote in message
news:38B3FEE8.2A14AC8C_at_uk.oracle.com...
> Norazman wrote:
>
> > Hi how to get the firts day date of the month in SQL.
> > Ie since today is feb so it should be 01-feb-2000
> > thanks
>
> select TO_DATE('01-' || TO_CHAR(sysdate, 'MON-YYYY'), 'DD-MON-YYYY')
> from dual
>
> Brian
>
Received on Wed Feb 23 2000 - 18:35:39 CET