Add()

DateTime::Add(TimeSpan) const method

Returns a new instance of DateTime class that represents a date and time value that results from addition of the specified time span to the date and time value represented by the current object.

DateTime System::DateTime::Add(TimeSpan value) const

Arguments

ParameterTypeDescription
valueTimeSpanThe time interval to add

Return Value

A new instance of DateTime class that represents a date and time value that results from addition of tm time span to the date and time value represented by the current object

See Also