Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SYSDATE
JBB wrote:
> Is SYSDATE command concerned with Time Zones ?
> and TO_DATE function ?
>
> SELECT TO_DATE(SYSDATE,'YYMMDDHH24MISS') FROM DUAL;
>
> Does the time zone depend on Oracle installation or the underlying OS ?
The "TO_DATE" function requires a string for it's first argument, not a date - At a guess, you probably want to look up the "TO_CHAR" function instead.
You can also check your current "NLS_DATE_FORMAT" mask from the view: "v$NLS_PARAMETERS".
Cheers,
Chris Val
Received on Tue Oct 11 2005 - 22:50:09 CDT
![]() |
![]() |