Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Here is a sample

Call notesDateTime.AdjustDay( n% )

Parameter
n%
Integer. The number of days by which to increment the date-time. Can be positive or negative.

Usage
If you adjust the number of days so that the date-time moves into or out of daylight savings time, the time component is incremented or decremented by one hour.

Examples
1.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 )

2. 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 savings time, the date represents 04/06/96 04:36:00 PM, reflecting the fact that daylight savings time went into effect on April 6.

Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustDay( -10 )

3. 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 savings time.

Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustDay( -17 )


Feedback response number WEBB98UQ33 created by ~Sean Eljumigon on 06/20/2013

AdjustDay LotusScript no flag failu... (~Tanita Zenalit... 20.Jun.13)
. . Here is a sample (~Sean Eljumigon... 20.Jun.13)
. . You need to initialize the dTime va... (~Fred Asatumibu... 21.Jun.13)
. . . . Is there more data (~Tanita Zenalit... 21.Jun.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS