1

In SqlDeveloper, when I run this query:

select sysdate from dual 

I see only 15-FEB-16,

but not the time portion. I suppose that there is time portion, but somehow I can not see it. How to fix this?

Thanks.

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
vldmrrdjcc
  • 2,050
  • 5
  • 21
  • 38
  • http://stackoverflow.com/questions/8134493/how-can-i-set-a-custom-date-time-format-in-oracle-sql-developer – Praveen Feb 15 '16 at 11:45

2 Answers2

3

If you don't want/can't change the NLS settings, use the to_char function, but note that since then its a varchar type, not a date anymore! changing it back to date would display it according to NLS settings again

SELECT to_char(SYSDATE, 'yyyy-mm-dd hh24:mm:ss') from dual

this way you can define the format (using the mask) anyway you want

Jemo
  • 107
  • 1
  • 7
2

Change your NLS settings: Tools -> Preferences -> Database -> NLS

Changing Default Date Format settings

Ess'iele
  • 3
  • 3
SkyWalker
  • 484
  • 2
  • 7