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.
Use Timestamp. it has a constructor that receives long as the only parameter.