This timestamp 1537806936331
is equal to Monday, September 24, 2018 7:35:36.331 PM GMT+03:00 DST
. You can find here:
https://www.epochconverter.com/
Therefore try the following:
let date = new Date(1537806936331); //Mon Sep 24 2018 19:35:36 GMT+0300 (Eastern European Summer Time)
let hours = date.getHours() - 8; //11
Check here for more info:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
If you want to get the timestamp of the date above then try the following:
let date = new Date(1537806936331); //Mon Sep 24 2018 19:35:36 GMT+0300 (Eastern European Summer Time) //11
date.setHours(date.getHours() - 8); //11
let timeStamp = Date.parse(date);
console.log(timeStamp); //1537778136000
You can use Date.parse()
to get the timestamp.