code_junkie

How can I get Datetime to display in military time in oracle?

Nov 11th, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
  2.  
  3. alter session set NLS_DATE_FORMAT='DD/MM/YYYY HH24:MI:SS'
Add Comment
Please, Sign In to add comment