例: DateSep, isDateDMY, isDateMDY, isDateYMD, Today, Tomorrow, and Yesterday properties

次のエージェントが表示する日付国別設定は、日付形式の表示順 (日月年、月日年、年月日)、区切り記号、昨日、今日、明日を表すキーワードです。

import lotus.domino.*;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      International inat = session.getInternational();
      if (inat.isDateDMY())
        System.out.println
        ("Format of date is ¥"DMY¥"");
      if (inat.isDateMDY())
        System.out.println
        ("Format of date is ¥"MDY¥"");
      if (inat.isDateYMD())
        System.out.println
        ("Format of date is ¥"YMD¥"");
      System.out.println
      ("Date separator is ¥"" + inat.getDateSep() + "¥"");
      System.out.println
      ("Text of date keywords: " +
      inat.getYesterday() + ", " +
      inat.getToday() + ", " +
      inat.getTomorrow());
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}