Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Date format for 8/4/97, plus TRUNC('ww') question
Kevin,
(1) The 'fm' format is like a toggle, once it is issued it stays in effect until it is issued again. For example:
select to_char(sysdate,'fmMM/DD/YYYY') from dual;
This should yield 8/5/1997
however, if you type:
select to_char(sysdate,'fmMM/fmDD/YYYY') from dual;
you should see 8/05/1997 because the 2nd "fm" turned off fill mode.
(2) I was able to duplicate your second question. I'd be interested in hearing an explanation myself. For what it's worth, we are using Oracle 7.3.2.3/ SQL*Plus 3.3.2 on AIX 4.1.4
Mike Morgan
Compuware Corp.
>
> 2. The reference book says TRUNC(some_date, 'ww') should always give a
> Monday. Mine always seems to give a Wednesday. Huh?
>
> Thanks,
> Kevin
>
>
Received on Tue Aug 05 1997 - 00:00:00 CDT
![]() |
![]() |