My Oracle Support Banner

Date Format Issue With The OJDBC Jar Files From “yyyy-MM-dd HH:mm:ss” Instead of “yyyy-MM-dd HH:mm:ss.S” (Doc ID 2715606.1)

Last updated on OCTOBER 01, 2020

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


In, the date field returns in the format “yyyy-MM-dd HH:mm:ss.S” but after the update to the date field returns in the format “yyyy-MM-dd HH:mm:ss” (without the extra “.S” at the end). This causes the date formatting code to throw an exception because the format doesn’t match what is expected. 

The code does a simple read of a date field using SQL. Then the date field is read as a String and parsed into a Date field. The code looks like:

Once the query finishes the code uses “rs.getString(1)” to return the EMP_TERMINATION_DATE field into a String variable in the format described above.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.