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

228
Views
Convert Date without "T" and "Z" to Date with T-Z Format

I have a JSON file with date format in the form of 2021-09-21 15:37:29.590 +03:00.

How can we convert it to a Date in a T-Z Format ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can pass it into the Date constructor and call toISOString.

const convert = (dateString) => new Date(dateString).toISOString();

console.log(convert('2021-09-21 15:37:29.590 +03:00')); // 2021-09-21T12:37:29.590Z

about 4 years ago · Juan Pablo Isaza Report
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!