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

135
Views
javascript date format date time to 0

I have this date

Thu Feb 24 2022 15:00:00 GMT+0400 (Russia Standard Time)

Can I change the 15:00:00 time to 00:00:00 for example this date must be like this

Thu Feb 24 2022 00:00:00 GMT+0400 (Russia Standard Time)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could use setUTCHours() :

let date = new Date("Thu Feb 24 2022 15:00:00 GMT+0400");
console.log(date);
date.setUTCHours(0,0,0,0);
console.log(date);

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!