Examples: adjustDay method
This agent decrements the date by 10 days.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
DateTime dt = session.createDateTime("Today");
dt.setNow();
System.out.println("Today: " + dt.getLocalTime());
dt.adjustDay(-10, true);
System.out.println("Ten days ago: " +
dt.getLocalTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}