System::DateTime::operator+ method

DateTime::operator+ method

Returns a new instance of DateTime class that represents the date and time value that is the sum of the value represented by the current object and the specified time span.

DateTime System::DateTime::operator+(TimeSpan value) const
ParameterTypeDescription
valueTimeSpanThe time span to add to the value represented by the current object

ReturnValue

A new instance of DateTime class that represents the date and time value that is the sum of the value represented by the current object and value.

See Also