| Author |
problem with java.sql.date
|
HimaBindu Gudey
Greenhorn
Joined: Oct 01, 2005
Posts: 1
|
|
Hi All, I have a problem with java.sql.Date.I want to store date and time in database where the field type is Date. From java I want to insert date and time .The method takes java.sql.Date.If I am using like this row.setAdtDttm(new Date(System.currentTimeMillis())) ,only the date is getting stored.And time is stored as 00:00:00. Can anyboby has any clue how to resolve this.
|
 |
Annie Smith
Ranch Hand
Joined: Mar 05, 2005
Posts: 172
|
|
Use java.sql.Timestamp instead.
|
Cheers!<br /><b>Annie</b>
|
 |
 |
|
|
subject: problem with java.sql.date
|
|
|