Use Moment.js to convert Unix epoch time to human readable time

You can use moment.unix(epochTime).


From the Docs: Unix Timestamp

var day = moment.unix(1318781876); //seconds
var day = moment(1318781876406); //milliseconds

// and then:

console.log(day.format('dddd MMMM Do YYYY, h:mm:ss a'));

// "Sunday October 16th 2011, 9:17:56 am"

moment.unix(yourUnixEpochTime).format('dddd, MMMM Do, YYYY h:mm:ss A')

You can use .format('LLLL') for your requirement.

let result = moment(epoch).format('LLLL');

let epoch = 1562127342123;
let result = moment(epoch).format('LLLL');
console.log(result);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js" integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>