I'm using moment to properly configure my datetime item coming from SharePoint For example: Here's how the date look like with no conversion coming from a API call on a SP list, /Date(1657281600000)/
So using moment, I do the following....
myRealDateTime = moment(myDateTime[i].start).format('MM/DD/YYYY hh:mm a')
My result gives me the correct date, but for some reason it's subtracting 4 hours from my time.
I'm not sure how to fix this. I'm not sure, but Should I be using moment-timezone? How can I solve this?
Thanks in advanced.