Examples: AdjustHour method
- This script increments a NotesDateTime object by two hours, so
that it represents 04/16/96 07:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( 2 )
- This script decrements a NotesDateTime object by two hours, so
that it represents 04/16/96 03:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( -2 )
- This script increments a NotesDateTime object by ten hours. This
carries the date over to the next day, so that it represents 04/17/96
03:36:00 AM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( 10 )
- This script creates a NotesDateTime object set to today's date
and increments it by 24 hours. The date-time does not have a time
component, but since 24 hours crosses a day boundary, the date component
is incremented by 1 day.
Dim dateTime As New NotesDateTime( "Today" )
Call dateTime.AdjustHour( 24 )
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.