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

106
Views
Getting readable date from ISO

I'm using vue.js and moment.js and I can't get this date into a readble format.

2022-03-16T13:00:00.000000Z

I'm looking for something like 16th March 2022 - 1pm

I've tried this thus far...

    var s = '2022-03-16T13:00:00.000000Z';
    var b = s.split(/\D+/);
    console.log( new Date(Date.UTC(b[0], --b[1], b[2], b[3], b[4], b[5], b[6])));

and

<span>{{ '2022-03-16T13:00:00.000000Z' | moment("DD-MM-YY") }}</span>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Using moment, you can achieve this-

moment('2022-03-16T13:00:00.000000Z').format('Do MMMM YYYY - h a') //16th March 2022 - 6 pm
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!