Version

AdjustDateTime Method

Increment/Decrements the provided DateTime by the values of the current object.
Syntax
'Declaration
 
Public Function AdjustDateTime( _
   ByVal up As Boolean, _
   ByVal date As Date _
) As Date
public DateTime AdjustDateTime( 
   bool up,
   DateTime date
)

Parameters

up
Set to True to increment; False to decrement
date
The DateTime object used to created the new adjusted DateTime object.

Return Value

Returns the adjusted DateTime. If the incrementing/decrementing goes beyond the max/min bounds of the DateTime class, return MaxValue/MinValue appropriately.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also