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

170
Views
Javascript | How to convert a timestamp string from different timezone to Date object, without changing the time to OS timezone?

In Javascript, converting the following string 2022-01-07T17:12:41.494473144-05:00 to a Date object results in a Date object with value 2022-01-07T22:18:44.614Z.

Trimming the String to 2022-01-07T17:12:41.494473144 results in a Date object with value 2022-01-07T16:12:41.494Z

Expected result in both cases are a Date object with value 2022-01-07 17:12:41.

Question: How can I convert the above string representation of a timestamp to a Date object, regardless of the clock/timezone of the operating system executing the code?

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!