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: HELP !!! SYSDATE

Re: HELP !!! SYSDATE

From: fumi <fumi_at_tpts5.seed.net.tw>
Date: 9 Oct 1999 17:00:05 GMT
Message-ID: <7tnsal$ebj$2@news.seed.net.tw>

ZC <zuin_chn_at_my-deja.com> wrote in message news:7tjull$uc1$1_at_nnrp1.deja.com...
> I need help. Bellow, after I execute the code below on Saturday and
> Sunday, I get a return of WEEKDAY. Can someone suggest why it's not
> returning WEEKDAY
>
> IF TO_CHAR(V_Sysdate, 'DAY') IN ('SATURDAY', 'SUNDAY')
> THEN
> DBMS_OUTPUT.PUT_LINE(' WEEKEND ');
> ELSE
> DBMS_OUTPUT.PUT_LINE(' WEEKDAY ');
>
> END IF;
Use TO_CHAR(V_Sysdate, 'fmDAY').
The 'DAY' date format will return a string of 9 characters, padded with blanks. Received on Sat Oct 09 1999 - 12:00:05 CDT

Original text of this message

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