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

236
Views
Minus one hour from now and convert to ISODate?

I am trying to minus one hour from now and try to convert it to IsoString.

let date = new Date().getTime() - 1000 * 60 * 60
// Here I am trying to get past hour time by minus 1 hour.

console.log(date.toISOString())
// Here I am getting one error like
// date.toISOString is not a function

Why I am getting this error - date.toISOString is not a function. Please help me.

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

0

var date = new Date()

date.setHours(date.getHours() - 1);

console.log(date.toISOString())
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!