I’m trying to use .format() to convert the inputted time into ‘ddd, MMM DD, hh:mma’ format, but it returns it in the wrong timezone (America_NewYork)
const someday = moment('2023-01-27T12:21:08.088Z').format('ddd, MMM DD, hh:mma');
const out = document.getElementById('output');
const someday = moment('2023-01-27T12:21:08.088Z').format('ddd, MMM DD, hh:mma');
out.innerText = someday;
<script src="https://momentjs.com/downloads/moment.js"></script>
<p>Expected outcome: Fri, Jan 27, 09:21am </p>
<p>Actual outcome: <span id="output"></span></p>