I want to get the current timestamp like that : 1320917972

int time = (int) (System.currentTimeMillis());
Timestamp tsTemp = new Timestamp(time);
String ts =  tsTemp.toString();

14 Answers
14

Leave a Reply

Your email address will not be published. Required fields are marked *