String nDateString ="1365574122840";
Date date = new Date(Long.valueOf(nDateString));
SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" );
String a=format.format(date);
System.out.println(a);
String nDateString ="1365574122840";
Date date = new Date(Long.valueOf(nDateString));
SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" );
String a=format.format(date);
System.out.println(a);