Answers for "call a javascript function at a specific time of day"

0

call a javascript function at a specific time of day

setInterval(()=>{
let now = new Date();
//86400000 represents 10 hours in milliseconds Change it as you like
if(now.getTime() == 86400000 ){
  //your code
}
}, 1);
Posted by: Guest on July-15-2021

Code answers related to "call a javascript function at a specific time of day"

Code answers related to "Javascript"

Browse Popular Code Answers by Language