VAD Time of day with hours and minutes

Status
Not open for further replies.

jmtelecom

Gold Partner
Advanced Certified
Joined
Apr 15, 2009
Messages
42
Reaction score
12
Hi

does anyone has a template that gives different welcome prompt message depending on the time of day.
but not only on the hours but also in minutes?

like 8:30 tile 12:00 and 13:00 till 18:00

I only found this one 3cx.com/blog/docs/javascript-3cx-vad/

thanks ;)
 
Hi there,

That article shows how to use a javascript expression to get the current hour. You can do the same to get the current minutes, calling:
new Date().getMinutes()

That will return a value from 0 to 59.

You can combine both calls, to decide the flow.

Kind regards.
 
I feel that this is beneficial to the reader too much.
 
Hi Edossantos

I did it like this but this does not work?
 

Attachments

  • VAD.JPG
    VAD.JPG
    44.1 KB · Views: 1,844
And what error are you getting?
 
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee