Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Timestamp/Date insers as null

807603Dec 21 2006 — edited Dec 22 2007
How can I get null date?
If I write this I get 01/01/1970 02:00
Date date = new Date();//null
date.setTime(0);
java.sql.Timestamp closeDate = new java.sql.Timestamp(date.getTime());
[/code                                                                                                                                                                                                                                                                                                                                                                                                        
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2008
Added on Dec 21 2006
11 comments
912 views