Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

UCCX 7.1.3 Enterprise Holiday Script Error (Date Format Issue??)

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?

6 REPLIES

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

What is the current date and time on the UCCX server?  Is it sync'd to an NTP server?

Please help us make the communities better. Rate helpful posts!
New Member

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

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

New Member

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

Sorry, this is Enterprise. The scripting is different than Express.

New Member

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

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...

New Member

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

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.

New Member

Re: UCCX 7.1.3 Holiday Script Error (Date Format Issue??)

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...

1775
Views
0
Helpful
6
Replies