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

233
Views
Moment: not able to get the format

I have an api which returns the date which is human readable but not getting the data after parsing through moment;

The time which I am getting from api is

{"time": "Jun 27 2022 03:40:00:000PM"}

what I have tried is

let data = moment("Jun 27 2022 03:40:00:000PM").format()
also tried this:
let data = moment("Jun 27 2022 03:40:00:000PM").format("YYYY-MM-DD") 

But not getting time. Every time I get the error

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release.

Can someone guide me how to tackle this types of dates.

Any help or suggestion is really appreciated. Thanks in advance for the interaction👏

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!