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