Only part of a date field in my database is returned (Doc ID 1025977.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6.3 and later
Information in this document applies to any platform.
Information in this document applies to any platform.
***Checked for relevance on 12-December-2013***

Symptoms

Database contains a table with a DATE column containing: 7/13/2007 12:00:00 AM
However, printing it from the JCD, it prints only part of that:

System.out.println(">>>>>> Date: "+resultset.getDate( 13 ).toString() );
prints: >>>>>> Date: 2007-07-13

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms