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

193
Views
How to check if the difference between two dates is 4 hours?

i have the following dates

Fri Jul 01 2078 00:00:00 GMT+0200 (Central European Summer Time)

and

Sat Jul 02 2078 00:00:00 GMT+0200 (Central European Summer Time)

I need to check if the difference is 4 hours

In this case the difference is 24 hours

If it is Fri Jul 01 2078 00:04:00 GMT+0200 (Central European Summer Time) then i have two hours and it is acceptable.

Also i need to cover the DAYLIGHT SAVINGS TIME.Any idea how can i do this with moment.js ?

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!