How to create Date value from milliseconds?

Date value from milliseconds

To create a date with the number of milliseconds after midnight, January 1, 1970 UTC.

 







    

        var aDate = new Date(1111111); 

        document.writeln(aDate);

        //Wed Dec 31 1969 16:18:31 GMT-0800 (Pacific Standard Time)