Hi Ashley,
Use Create Variable and pass below function you will get output in integer for month.
ParseInteger(formatDateTime($object/Date1,'MM'))
I’d suggest checking the DateTime attribute is not empty before calling the Java Action.
If you are just after the month as an Integer, you can do this without using a Java Action. You can use the built in formatDateTime function to extract the month as a String, then use parseInteger to convert that String into an Integer. Something like this should work…
parseInteger(formatDateTime($object/Date1,'MM'))
Hope this helps.
Hi Ashley,
Just check whether your input attribute date time is properly giving date just like CurrentDateTime.