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

107
Views
Repeating timer every 30 days

I have a countdown timer on codepen

What do I need to change or add so that the timer repeats every 30 days?

Probably need to change here?

const end = new Date(2021, 8, 15, 13, 0,12, 12);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could probably convert the date to a unix epoch timestamp and do the following:

let remaining_time = the_timestamp % (2592000000 + offset)

Where 2592000000 is the length of 30 days in milliseconds and offset is the offset you desire (if any). Thus it will repeat every 30 days.

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!