Passing a timestamp to javascript? Use this to convert it to a Javascript date object:
`var timeStamp = 10000;
var theDate = new Date(timeStamp * 1000);
var dateString = theDate.toGMTString();
`
Passing a timestamp to javascript? Use this to convert it to a Javascript date object:
`var timeStamp = 10000;
var theDate = new Date(timeStamp * 1000);
var dateString = theDate.toGMTString();
`
Comments are closed.
Hi,
I am using
http://www.mobilefish.com/services/unixtimestamp/unixtimestamp.php to convert Unix timestamp into a meaningful date and time.
This site also contains other useful tools.