cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
2083
Views
0
Helpful
2
Replies
Highlighted

How to compare --current date-- with a date variable in Script Editor ?

Hello,

I'm writing a auto-attendant script for an UC540W, and I have a problem to compare dates.

I'm trying something like : If (--Current Date-- >= Beginning && --Current Date-- <= Ending)

The CUE Script Editor display an error about "--Current Date-- ".

What is the keyword to use (if any) to compare a date with the current date ?

The script is attached to this email.

Best regards;

Philippe

2 REPLIES 2
Highlighted
Rising star

This community does not provide technical support and is not staffed with technical support experts.  I recommend you post this and future technical support questions to the Cisco Support Community (https://supportforums.cisco.com/index.jspa) where our Cisco technical support experts provide assistance.  


We do encourage you to participate in the Cisco Collaboration Community and to also join our Cisco Collaboration User Group program!  In the community, we encourage your discussion/sharing around collaboration topics and Cisco Collaboration Solutions, including business and IT requirements, industry trends, process, culture/organization issues, how collaboration can be used to transform businesses, vendor selection, adoption, training, architecture, licensing, and product features/functionality. If you are a customer or partner, you can also join the user group program to be eligible for member-only events and influence product direction.


We hope to hear from you again.

Kelli Glass

Moderator for the Cisco Collaboration Community

Highlighted
Beginner

Hi Philippe,

For getting current date, you need to create a Date variable and give the value of it as,

new java.util.Date()

Also I think while comparing you need to add 1 day to the other date variable which you are comparing with current date.

Thanks,

Nikhil Joshi.