Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

question about the YY format and century

2776946Jun 4 2015 — edited Jun 4 2015

Does the YY format in dates look ONLY at the current century unless otherwise specified?

For example when I do:

select last_name, to_char (hire_date, 'DD-MON-yYYY')

from employees

where to_date (hire_date, 'DD-Mon-YY') < '01-Jan-99';

it gives me no output because all my hire_date's are before 2000.

hence is Oracle only reading dates from 2000-2099?  Because overall I obviously have hire_dates before 2099, just not in the same century.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2015
Added on Jun 4 2015
6 comments
6,307 views