cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
507
Views
0
Helpful
2
Replies

Automated Pre-Holiday Prompting

robertvoss2
Level 1
Level 1

Hello,

I am building a holiday check script which reads from an XML document. The script grabs today's date, then pulls the date information it finds in the XML file and compares the day, month, and year. If it finds that all 3 match then it invokes holiday treatment - which is basically playing of a holiday prompt and offering to transfer to voicemail.

What I would like to add next is a pre-holiday treatment, such that if the date is 5 days prior to the holiday date found in XML, a special prompt is inserted which informs the caller of the upcoming holiday closure. Below is the string I use to check for the holiday itself. I'm looking for help on how the pre-holiday string could be written. Something like take the holiday day and subtract 5, then find if today's date is equal to any number within that range of holiday date -5. Any suggestions?

thank you

2 Replies 2

Check this thread out, specifically Anthony's post. https://supportforums.cisco.com/discussion/11327286/how-get-tomorrows-date-uccx-script It should get you what you want.

david

Thanks for the link David, I'll check it out and see what I can work up.