how can I convert a Java timestamp like this one 1335997853142 to a format that php can read? 1335997853142 should be 02 May 2012 22:30:53
1335997853142
02 May 2012 22:30:53
The timestamp you have is in milliseconds when it should be in seconds
$java_time = 1335997853142; $php_time = $java_time / 1000; $today = date("d M Y G:i:s", $php_time);
Output