Skip to main content

Examples: AdjustMonth method

  1. This script increments a NotesDateTime object by three months, so that it represents 07/16/96 05:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustMonth( 3 )
  1. This script decrements a NotesDateTime object by three months, so that it represents 01/16/96 05:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustMonth( -3 )
  1. This script decrements a NotesDateTime object by four months. This carries the date over to the previous year, so that it represents 12/16/95 05:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustMonth( -4 )