07-06-2010 02:15 PM - edited 03-14-2019 06:01 AM
I'm, having an issue with my Holiday Scripts where their either not turning on or not tuning off accordingly.
What is the corret formate? I have them in as single date as date(09/06/2010) and for multiple dates as date(7/5/2010)||date(7/4/2011)
Any ideas of what I'm missing?
07-06-2010 04:38 PM
What is the current date and time on the UCCX server? Is it sync'd to an NTP server?
07-07-2010 08:14 AM
We had the same issue. On our May holiday the Contact centre opened up on the Monday as normal,.
I have attached a screen shot of the script and a copy of the xml file it checks against. My feeling is that it is in wrong format. Our server has correct time and is pointing to NTP server.
thanks in advance
07-07-2010 08:52 AM
Sorry, this is Enterprise. The scripting is different than Express.
07-07-2010 09:11 AM
In UCCE an example of date formula is (when used within an "if" node)
date()=date(2010,12,27)
so it is
date()=date(YYYY,MM,DD)
so today would be - date()=date(2010,07,07)
with multiple dates
(date()=date(YYYY,MM,DD))||(date()=date(YYYY,MM,DD)
Regards
Duncan
Please rate helpful posts...
07-07-2010 10:37 AM
Where does it check for the formating? I currently have it as date(05/31/2010) opposed to date()=date(2010,5,31) as you are suggesting.
07-08-2010 01:14 AM
Not sure I understand the question.
But the difference between our statements is that you use / to separate the date sections.
You use date(05/31/2010)
I use date(2010,5,31)
The help section in UCCE states
"Note: Do not use the slash (/) character in defining a date function. Because it is the division operator, the function would not return the results you are looking for. You could enclose the argument within a string----but the preferred format is: . "
For me the only one that has worked is date(2010,5,31).
It is easy to test. Knock up a simple admin script (start node, if node and two end nodes) and populate the IF node with my date format.
Remember my formula in the IF node , date()=date(2010,5,31) , is asking if today's date is 31/05/2010. You need the "date()=" at the beginning to specify today's date.
Hope this helps.
Regards
Duncan
Please rate helpful posts...
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