To convert epoch value to a JavaScript date object, we need to multiply it with 1000 to get milliseconds equivalent of the epoch timestamp and pass it to Date() constructor to get JavaScript date.
var myDate = new Date(1601528702*1000); console.log(myDate.toLocaleString()); // 01/10/2020, 10:35:02