Please excuse our look. We're just getting started here.

Want to learn more about Twilio Forums? Check out our FAQ page here.

Is there a Time of Day Routing on IVR Widget?

Is there a Time of Day Routing on IVR Widget? If it is not available, what is simplest way to allow routing of calls to different destination during different time/day?

Best Answer

  • snicolaides
    Accepted Answer

    I'm glad you were able to get it working!


    As for the minutes, another variable would be needed to check against for that instead of using the hours.

        const hour = now.hour();
        const min = now.minute();
    

    Then you would be able to check the half past on the min variable instead.


    The momentjs docs page below references more variables that you'd be able to check against as well (day of year/week of year/etc).


Answers

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support