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

Home -> Community -> Usenet -> c.d.o.server -> Re: Urgent Query

Re: Urgent Query

From: Walt <walt_askier_at_SHOESyahoo.com>
Date: Mon, 31 Jul 2006 09:28:30 -0400
Message-ID: <12cs1bulj6ihmb9@corp.supernews.com>


deepagulati_at_rediffmail.com wrote:

> Hi,
> This query
> select to_date(CURRENT_DATE,'dd/mm/yyyy hh:mi:ss AM') from dual;
>
> returnig the result as 31/07/0006 while the current year is 2006 ???

Try this instead:

select to_char(sysdate ,'dd/mm/yyyy hh:mi:ss AM') from dual;

//Walt Received on Mon Jul 31 2006 - 08:28:30 CDT

Original text of this message

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