File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Convert DateTime to TimeStamp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Convert DateTime to TimeStamp" Watch "Convert DateTime to TimeStamp" New topic

Convert DateTime to TimeStamp

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
how can i convert this DateTime type value 20060610000000.000000+000
to TimeStamp Value ?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37970
Don't know. A bit unfortunate that nobody has managed to do it. I did try when you first posted that question, but it didn't work. A TimeStamp needs a certain format with - and : in.
I agree. Here's the link:
subject: Convert DateTime to TimeStamp
Similar Threads
MySQL JDBC Driver and Null Dates
java.sql getTimestamp
Convert datetime value to EST
Retrieving wrong date/time with Timestamp
Date Conversion