How do I change a long variable to a Timestamp variable? I can convert it to a String but I need to convert it to Timestamp in order to use it in a database.
Timestamp extends java.util.Date and it has a constructor that accepts a long.
I don't know Java, but an internet search suggests that
So, you can do something like this, perhaps:
For more information, see http://download.oracle.com/javase/6/docs/api/java/sql/Timestamp.html.