Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

VAD time controle

Discussion in 'Call Flow Designer' started by schiphorst, Jun 1, 2017.

Thread Status:
Not open for further replies.
  1. schiphorst

    Joined:
    Oct 13, 2016
    Messages:
    10
    Likes Received:
    2
    Hello,
    In a earlier post there is question about time controle in the VAD v15.
    Now in the controle the is a C#: DateTime.Now.Hour >= 9 && DateTime.Now.Hour < 12
    This is from 9 till 12, i whant to set is from: 8:30 till 12:29 how do i get the minutes?
    i whant to make three controles:
    8:30 till 12:29
    12:30 till 12:59
    13:00 till 17:00
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,617
    Likes Received:
    126
    Hi @schiphorst,

    The expression is a bit longer, but it's the same concept, it's a C# expression that returns true when the condition is met. So for example, an expression that returns true between 8:30 and 12:30 would be:
    (DateTime.Now.Hour == 8 && DateTime.Now.Minute >= 30) || DateTime.Now.Hour == 9 || DateTime.Now.Hour == 10 || DateTime.Now.Hour == 11 || (DateTime.Now.Hour == 12 && DateTime.Now.Minute < 30)

    You can apply the same concept for the other ranges you have.

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. schiphorst

    Joined:
    Oct 13, 2016
    Messages:
    10
    Likes Received:
    2
    Thank you for your responds, i will try it.
    How do i set the days of the week?

    greatings,
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,617
    Likes Received:
    126
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.