|
-
July 5th, 2011, 04:03 PM
#1
Java METHOD to return date instead of Calendar field
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|