例: AdjustMonth method

  1. 次のスクリプトは、NotesDateTime オブジェクトの値に 3 ヵ月を加算します。その結果、このオブジェクトの値は 07/16/96 05:36:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMonth( 3 )
  2. 次のスクリプトは、NotesDateTime オブジェクトの値から 3 ヵ月を減算します。その結果、このオブジェクトの値は 01/16/96 05:36:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMonth( -3 )
  3. 次のスクリプトは、NotesDateTime オブジェクトの値からを 4 ヵ月を減算します。日付が 1 年戻り、このオブジェクトの値は 12/16/95 05:36:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMonth( -4 )