Correct date format in sql developer

I have date_created datatype date showing in sql developer as 06-09-29 can I display it in yyyy-mm-dd format.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

select to_char(date_created,'yyyy-mm-dd') from your_table;

you can also set your session's format option but that will format all dates in all queries this way which may not be what you want (if, for example, some dates have hours,minutes,seconds populated with non-zero values)

alter session set nls_date_format='yyyy-mm-dd';

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sam2929Author Commented:
I did alter session now date coming like 006-10-09
Mark GeerlingsDatabase AdministratorCommented:
You apparently missed a "y".  You need four of them as sdstuber suggested.  You apparently executed this (with just three "y" characters):

alter session set nls_date_format='yyy-mm-dd';

Correct version is:
alter session set nls_date_format='yyyy-mm-dd';
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.