DateTimeUtil.Add(DateTime, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static DateTime Add (DateTime time, TimeSpan timespan);
static member Add : DateTime * TimeSpan -> DateTime
Public Shared Function Add (time As DateTime, timespan As TimeSpan) As DateTime
Parameters
Returns
The sum of time
and timespan
, or MaxValue if the sum exceeds it, or MinValue if the sum is less than it.