on 04-30-2007 11:59 AM
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.
Take "Timestamp" datatype and try it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Used Calendar Object for conversions !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.