Moment JS
Example of parsing and formatting a Date with Moment JS.
HTML
<script src="http://momentjs.com/downloads/moment.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
JavaScript
console.log(moment.unix(1556450996).format())
console.log(moment('2019-04-28T21:59:50+05:30').format())