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

393
Views
How to format this date so it's more readable?

I have date in this format:

2022-06-28T17:09:00.922108+01:00

I want to covert it into a more readable format. I'm using javascript/react and I tried moment-js but it gives me "invalid format".

What are my other options of turning it into a normal date?

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

0

You can use this to format date:

const format = "DD-MM-YYYY"
moment(date).format(format)

or

moment().format('MMMM Do YYYY, h:mm:ss a');  // June 28th 2022, 9:49:49 pm

for more detail refer: https://momentjs.com/

about 4 years ago · Juan Pablo Isaza Report

0

If you are using moment.js you can convert this to any format you like using this doc

Sample code

moment('2022-06-28T17:09:00.922108+01:00').format("DD-MM-YYYY"); //28-06-2022

Kindly go though the moment.js features and documents. There is a lot more you can do with this like showing time, day of the week etc

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!