Examples: AdjustDay method
- This script increments a NotesDateTime object by ten days, so
that it represents 04/26/96 05:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" ) Call dateTime.AdjustDay( 10 )
- This script decrements a NotesDateTime object by ten days, so
that it represents 04/06/96 05:36:00 PM. If the script runs on a computer
that observes daylight-saving time, the date represents 04/06/96 04:36:00
PM, reflecting the fact that daylight-saving time went into effect
on April 6.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" ) Call dateTime.AdjustDay( -10 )
- This script decrements a NotesDateTime object by 17 days. This
carries the date over to the previous month, so that it represents
03/30/96 05:36:00 PM, or 03/30/96 04:36:00 PM if the script runs on
a computer that observes daylight-saving time.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" ) Call dateTime.AdjustDay( -17 )