IPCC 7 Determine the week number of a month

Unanswered Question
May 21st, 2010
User Badges:

Hello,


I am working towards determine the week number of month and make appropriate routing changes only for that specific week. I have tried using the trunc(), getdate() and weekday(). But i fail to get the week number of a month, but I believe I have managed to the week number of a year.


The example I have considered is: On Tuesday and Thursdays in second week of every month the calls to be routed to a different skillgroup.


Please let me know if anyone has any suggestion for this.


Thanks,


FYI,

CM 4.1, CRS 3.5, ICM 7.1

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 2 (1 ratings)
Loading.
Gergely Szabo Fri, 05/21/2010 - 05:32
User Badges:
  • Green, 3000 points or more
  • Community Spotlight Award,

    Member's Choice, December 2015

I am not aware of any function of that kind in ICM, however, since CRS supports custom Java classes, I would definitely go that way.

For instance, I would do this:


http://www.java-examples.com/get-week-month-and-year-using-java-calendar


Alas, I know CRS 3.x is not that flexible regarding custom Java classes, but I am sure there is a way.


G.

Diwakar.D_2 Fri, 05/21/2010 - 08:00
User Badges:

Hi buddy,


Great stuff!! Your link gave me another hint of the possible solution, I was working on ICM but not sure why i did not consider CRS for this requirement , The CRS has a builtin function, I have used this builtin Methods which provided me what i expected.


The debug on the script resulted the week of the month for today which is "4".


Please let me know your view.


Thanks again!

Attachment: 
Gergely Szabo Fri, 05/21/2010 - 08:10
User Badges:
  • Green, 3000 points or more
  • Community Spotlight Award,

    Member's Choice, December 2015

Yeah, brilliant. I almost forgot there is a bunch of convenience methods like that

Actions

This Discussion