JAVA/CORBA CLASSES


Examples: DateOnly property
This agent prints the creation date of the current database.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     Database db = agentContext.getCurrentDatabase();
     DateTime createdDateTime = db.getCreated();
     String sCreatedDate = createdDateTime.getDateOnly();
     System.out.println
     ("Database \"" + db.getTitle() +
     "\" was created on " + sCreatedDate + ".");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also