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: 442 | Community Opinion:
0
Bookmark this page..
Ask a New Question
Go to Home
What do you think? Add your opinion/answer
*Name
Please enter your name.
*your opinion/answer:
Please enter your opinion.
Related Questions & Answers:
Google Urchin is now Out Of Beta
Apple & Dell plan to launch Blu-Ray Notebooks soon. What is it?
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
My computer system shows set up page every time I restart?
How can I get the current date or time of day in a C program?
whats the cost of fz 15