Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
Why is moment.js subtracting 4 hours from a date time item coming from SharePoint

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!