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

264
Views
How to format a UTC string as MMMM dd, yyyy in Javascript for kore.ai

The string I have : 2021-11-02T00:00:00.000Z . I need to display this as November 02, 2021.

Could someone please help me with this?

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

0

You would want to use what Date class has provided, here's a complete example.

const date = new Date('2021-11-02T00:00:00.000Z')
const month = date.toLocaleString('default', {
  month: 'long'
})
const day = date.getDay()
const year = date.getFullYear()
console.log(`${month} ${day}, ${year}`)

about 4 years ago · Juan Pablo Isaza Report

0

You can do something like this in vanilla JS

const options = { year: 'numeric', month: 'long', day: 'numeric' };

console.log(new Date('2021-11-02T00:00:00.000Z').toLocaleDateString("en-US", options));

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!