Zhao Dai

How to get the month as an integer out of a date in Blaze (.NET version 6.10.1)

Discussion created by Zhao Dai on Nov 26, 2012
Latest reply on Jan 11, 2013 by Zhao Dai

HI, there.

 

I'm trying to get the month (i.e. 7 for July) out of a date object by using serviceDate.getMonth(), and am getting the following compilation error in Advisor

(.NET version 6.10.1):


Compiling...
Error: The 'Java:date' class does not have any matching 'getMonth' method.
There is no method with the name 'getMonth' that accepts 0 parameters.
Error: The 'Java:date' class does not have any matching 'getMonth' method.
There is no method with the name 'getMonth' that accepts 0 parameters.

 

Could someone please tell me a working way to get the month of a date object

in the action part of a rule?

 

Thanks a lot.

 

ZD

Outcomes