I'm working with IBM WebSphere Host-on-Demand which is a IBM java applet. It has a built in macro builder which allows for a basic XML script to be built and allows for Java classes to be imported and called, but only methods within those classes are recognized.

This is a problem because Calendar.DATE is a field and not a method so it throws an exception because the macro is expecting a method syntax (such as java.util.DATE() which was replaced by Calendar.DAY_OF_MONTH or Calandar.DATE after verson 1.1).

Is there an actual method that will return a date? Specifically what I need is the day of the month so I can subtract 1 and get yesterdays date.

Thanks.