07-23-2017 11:29 AM - edited 03-15-2019 06:30 AM
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
07-24-2017 06:49 AM
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
07-24-2017 04:51 PM
Thanks for the link David, I'll check it out and see what I can work up.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide