C#
Parameters
- value
- Base value of date and time.
- dayOffset
- Days offset. The dayOffset parameter can be positive or negative.
- useSpecifiedKind
- Use
true
if method should return date as DateTimeKind.Utc.
Return Value
Instance of System.DateTime, which value is equal to the sum of the date and time, provided from parameters value, and the number of days, provided from the dayOffset parameter.Instance of System.DateTime contains only Date component of date.
Target Platforms: 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