How to translate timestamp in time?

There is a timestamp for example 1403774400000

Using the toGMTString(), I translate it like this:
var myDate = new Date(1403774400000);
 console.log(myDate.toGMTString()); //Thu, 26 Jun 2014 09:20:00 GMT


How to return the time in hh:mm format?
September 26th 19 at 20:09
2 answers
September 26th 19 at 20:11
Solution
// create Date object from your timestamp
var date = new Date( unix_timestamp * 1000 );
// extracted watch
var hours = date.getHours();
// minutes
var minutes = date.getMinutes();
// seconds
var seconds = date.getSeconds();
// display in the desired format: 11:17:23 
var time = hours + ':' + minutes + ':' + seconds;
Thank you) - kareem commented on September 26th 19 at 20:14
September 26th 19 at 20:13
Solution
console.log(myDate.getHours()+':'+myDate.getMinutes()); //12:20

Find more questions by tags Work with date / timeJavaScript