Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: newbie: PL/SQL TO_DATE Function and time
In article <7rmcub$vlp_at_enews4.newsguy.com>,
"Noah Arliss" <narliss_at_stumpworld.com> wrote:
> Does anyone know if the to_date function has issues with military time
and
> if so, how to format time so that it will be accepted by the to_date
> function?
>
>
Hi
Here is how you can switch between to_date and to_char with military
format. (You can user any format model for dates provided by Oracle)
OWAIS> select to_char(sysdate,'DD-MON-YYYY HH24MISS') Military_Date from dual;
MILITARY_DATE
MILITARY_
![]() |
![]() |