Tech
Baba.com
Home
|
Ask a New Question
|
Register
|
LogIn
when i conver the timestamp into current date i got the out put like 15/01/1970
import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
public class Demotimestamp {
public static void main(String as[])
{
Timestamp tm=new Timestamp(1252136233);
String date = new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new java.util.Date (1251883524));
System.out.println(date);
}
}
AMIT PANDEY
Views: 208 | Community Opinion:
0
Bookmark this page..
Ask a New Question
Go to Home
Register
or
Login
to Post Your Opinion
Related Questions & Answers:
what are the top 3 IT companies in the world and why?
Whats the blue port on the back of laptop, and what cable do i need to connect it to my t.v or another monitor
laptops???
Why twitter goes down. Why it is slow?
my hp presario has three ram slots how much memory can i add?
Free Dial-up Service Website?