Gregg Hilferding


Convert Unix Timestamp to Javascript Date Object

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();

Published by Gregg Hilferding on February 19th, 2007 at 3:55 pm. Filed under Javascript2 Comments

2 Responses to “Convert Unix Timestamp to Javascript Date Object”

  1. 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.

    Comment by Praveen on August 16, 2008 at 10:10 am



Leave a Reply