cancel
Showing results for 
Search instead for 
Did you mean: 

java.sql.Date normalization problem

Former Member
0 Kudos

Hi ,

I am trying to select a date from database . The data is fetched based on the record..

In the query when i pick records based on date , i get the following error..

"The object of type java.sql.Date with the value '2002-01-01 00:11:00.0' assigned to host variable 1 is not normalized. It must not contain time components in the time zone running the virtual machine."

the setHours,seconds.. etc seem to be deprecated. Could anyone suggest me an alternative method to normalize the date.

Your help is greatly appreciated

Thanks and Regards

Bharathwaj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Take "Timestamp" datatype and try it.

Former Member
0 Kudos

Used Calendar Object for conversions !