This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 37943
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
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