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

207
Views
Converting epoch timestamp into a readable date

I'm retrieving a value which is supposed to be a epoch timestamp from a database and trying to convert it back to a date format to display it into a screen.

I can see that I'm retrieving the correct value i.e. 1644537600 which should represent Friday, 11 February 2022 00:00:00.

When I do the following var date = new Date(parseInt(timestamp)); I get Tue Jan 20 1970 01:48:57

I tried to divide timestamp / 1000 or 1000000 but I get the same result.

It could be with date formatting but struggling to make it work.

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

0

That epoch is in seconds, you need to multiply it by 1000.

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!