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

IPCC Enterprise 7.1 -> Weekday() built-in function

Has anyone used this built-in function in ICM Scripting before; Weekday()? I am trying to use it in a script to read off a day of week based on a historical date, but I can't figure out how to determine input into the function. For example it won't accept Weekday(2008,08,13) like a Date() function will. I can get it to work with the results returned by ICM from Date(); result for today would be 148878. So, when I test Weekday(148878) it does work and proplerly returns 4 as today is Wednesday. Now my only problem is how can I convert a past date into the accepted format. For example I want to figure out what day of week 01/01/08 was. How do I translate 01/01/08 into a 148XXX value?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: IPCC Enterprise 7.1 -> Weekday() built-in function

Might this work?

WeekDay(Date()-Date(01/01/08))

david

3 REPLIES

Re: IPCC Enterprise 7.1 -> Weekday() built-in function

Might this work?

WeekDay(Date()-Date(01/01/08))

david

New Member

Re: IPCC Enterprise 7.1 -> Weekday() built-in function

Thanks David, you got me going the right direction, here is what worked:

weekday(date(01/01/08))

Thanks for the help!

Fred

Green

Re: IPCC Enterprise 7.1 -> Weekday() built-in function

Thanks - I love it when NetPros follow up with their solutions. Good stuff.

Regards,

Geoff

467
Views
0
Helpful
3
Replies