It's not a secret anymore!
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: 46320
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
It's not a secret anymore!