Field Form Rules question

Field Form Rules question

Hi everyone!

I wrote FFR for users, which wrote requests in non operational hours. it seems like this:

  1. var currentDate = new Date(); 
  2. if ((currentDate.getHours() < 8)||(currentDate.getHours() >= 17)) 
  3. {
  4. alert('message1'); 
  5. }
  6. if ((currentDate.getDay() === 0)||(currentDate.getgetDay() === 6)) 
  7. {
  8. alert('message2'); 
There is a little problem in regular holidays, maybe there is way to get holidays like .getDay? 

                  New to ADSelfService Plus?