SQL*Plus has a default DATE/TIME display. A method to view that default is:
Code:
SQL> select sysdate from dual;
SYSDATE
---------
12-MAY-09
You can over-ride the default using Oracle's TO_CHAR function, in which you apply richly exotic format masks of your choosing:
Code:
SQL> select to_char(sysdate,'fmDay, Month Ddspth, yyyy "at" hh24:mi:ss') Currently from dual;
CURRENTLY
-----------------------------------------------------
Tuesday, May Twelfth, 2009 at 8:49:30
Let us know if this assists you along your way.
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
“Beware of those that seek to protect you from harm or risk. The cost will be your freedoms and your liberty.”
To expand on ChrisHunt's comment, what exactly do you mean by "military time"? Having spent 20 years in the US Air Force, I never saw anything designated "military time". There were at least four different formats commonly used, depending on which operational command I was in. I'm sure the Army, Navy, and Marines have their own "military time" formats. And then we go to non-US militaries, who doubtless have their own formats.
The point of all of this is that providing a sample of the format you are receiving and the format that you would like it converted to would make it much faster and easier for us to provide you with an answer. But, as usual, SantaMufasa has provided the tool to do the job.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.