Avatar of sam2929
sam2929
 asked on

Correct date format in sql developer

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

Thanks
Oracle Database

Avatar of undefined
Last Comment
Mark Geerlings

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Sean Stuber

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sam2929

ASKER
I did alter session now date coming like 006-10-09
Mark Geerlings

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';
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy