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

334
Views
Javascript Add two days to current date exclude holidays and weekends using date-fns library

Suppose today is my current date I want to add two business days and if the holidays/weekends fall into these days , we append those many holidays and skip the weekends. 11/05/2022 + 2 days = 13/05/2022, if any holidays fall in between these days we move to next workin day ex: 12th is holiday then 14/02/2020 will be my payment date. Ex: if 13/05/2022 is Saturday or Sunday we skip and move to next working day 15/05/2022 is my payment date.

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!